Logs blank when deploying with docker container
When I deploy a python project normally, the logs output correctly, however when I use the docker container I've built to deploy the project the logs are missing, does anyone know what could be happening?
The docker container is as follows:
Solution:Jump to solution
Figured it out, I needed to add a -u flag to my python run command for unbuffered logs
4 Replies
Project ID:
6faf4c55-b612-44fb-9f25-1ae86f7c17be
6faf4c55-b612-44fb-9f25-1ae86f7c17be
This might just be a docker problem actually, not a railway problem. I tried running the dockerfile locally and same issue
Solution
Figured it out, I needed to add a -u flag to my python run command for unbuffered logs
btw nixpacks sets the un-buffered variable by default, that's why it worked with nixpacks and not your dockerfile