I’ve been dwelling with it for two days now. It seems impossible to deploy a Flask application on this thing. I even managed to use gunicorn, but it still shows the deploy failed when the app finishes to load.
I need to perform some training forehand, with Tensorflow so that’s the command I use to run the application:
gunicorn --preload app:app
those are the final lines of my log:
| Adam | epoch: 350 | loss: 0.01830 - acc: 1.0000 -- iter: 85/85
May 4 11:50:40 PM --
May 4 11:50:40 PM * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
May 4 11:50:40 PM * Serving Flask app 'chatbot_api.server.instance' (lazy loading)
May 4 11:50:40 PM * Environment: production
May 4 11:50:40 PM WARNING: This is a development server. Do not use it in a production deployment.
May 4 11:50:40 PM Use a production WSGI server instead.
May 4 11:50:40 PM * Debug mode: on
May 4 11:50:40 PM * Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
On my machine this means application up and running, but just a few seconds I see this it shows the deploy has failed.
I sincerely don’t know what to do and I’m starting to think that choosing this platform could’ve been a mistake.