I am trying to deploy with Python Flask. My Procfile is web: gunicorn src.app:app, but it keeps telling me “bash: gunicorn: command not found” in the logs. Anyone knows why? I even put gunicorn in my requirements.txt.
I would suggest you ssh into the image, and see if you can figure out the steps to run gunicorn from there interactively. Then once that works, put those same steps in your Dockerfile. You may have skipped pip install -r requirements.txt in your Dockerfile, or you could be missing a path or something else.
Oh, I am not using Docker, I just followed the official guide for python, but I am looking into dockerfile right now. Is there a way to get gunicorn without docker?
oh sorry, under the hood Fly uses a lot of Docker. You might not be exposed to it for your use case.
I’d still try ssh’ing in and seeing if you can get gunicorn running interactively. That will give you a clue if anything was missing. Like, did it install the requirements.txt ?
Thanks for your help, I ended up learning and switching to DockerFile instead of gunicorn, and now it’s working. I guess using Docker is the most reliable way to deploy to fly