7 months ago
I have successfully launched my flask backend using gunicorn with a Procfile:
web: gunicorn run:app --bind 0.0.0.0:$PORT
I have set the generate domain option with the port recommended (8080) under public networking.
The deployment logs state it is listening:
[2024-11-14 15:29:05 +0000] [1] [INFO] Starting gunicorn 23.0.0
[2024-11-14 15:29:05 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1)
[2024-11-14 15:29:05 +0000] [1] [INFO] Using worker: sync
[2024-11-14 15:29:05 +0000] [4] [INFO] Booting worker with pid: 4
I have tried a few options and I'm not quite sure where to go from here. I either get a 404 or the 'Application failed to respond' error and I'm not sure what to do to set up my backend, let alone allow the front end to make api calls to it.
Any advice would be appreciated.
3 Replies
7 months ago
Hello,
404 at the root of an API is perfectly normal.
What issues are you actually experiencing?
7 months ago
Yeah sorry, I have totally missed my endpoint and was misspelling it. Thank you for your help.
Status changed to Solved brody • 7 months ago