Logan
MModular
•Created by Logan on 11/28/2023 in #questions
Python print statements don't seem to do anything when deployed to server
I fixed it, for anyone else with a similar issue, all I had to do is set
ENV PYTHONUNBUFFERED=1
in my dockerfile3 replies
MModular
•Created by Logan on 11/28/2023 in #questions
Python print statements don't seem to do anything when deployed to server
And in vanilla Python, I had to run my code from the dockerfile using
Python -u main.py
so it would run in unbuffered mode.
In mojo all I seem to have is mojo main.mojo
which leads to Python not having the -u flag3 replies
MModular
•Created by Logan on 10/19/2023 in #questions
Docker Container Issues
Oh I thought I removed that, thanks. Good catch
7 replies
MModular
•Created by Logan on 10/19/2023 in #questions
Docker Container Issues
Oh yep looks like that was the error, seems like mojo on ubuntu docker container is not friendly to apple silicon
7 replies
MModular
•Created by Logan on 10/19/2023 in #questions
Docker Container Issues
I am running this from apple silicon though, could that be why? I thought now that it worked for apple silicon it should work in a docker container too
7 replies
MModular
•Created by Logan on 10/19/2023 in #questions
Docker Container Issues
And building the container with this
docker build --tag ark-guardian .
docker run --env-file .env -p 8080:8080 ark-guardian
7 replies
MModular
•Created by Logan on 10/19/2023 in #questions
Docker Container Issues
Here is the file I was attempting to build
7 replies