Flask app deployment failure

i’m trying to deploy a Flask app and it seems im having a problem with the start command, the file where my app is defined was called app.py so I tried gunicorn app:app, this failed then I read maybe there was a conflict between names, changed the file to my_app.py and then tried with gunicorn my_app:app but same error, also I have make sure that my Flask application instance is defined as app = Flask(name), so I will appreciate some guidance in what to do/check next.

Hi there,

This is indeed odd. The first thing I recommend trying is to delete and re-enter your service’s Start Command by typing it out letter-by-letter from your keyboard (no copy/paste). Sometimes a special character that looks like a space or other letter can masquerade as a proper space or letter, thus misleading bash into trying to run the entire string as a command. It would be good to rule that out before investigating further.

Regards,
Mike


Render Support Engineer, MT (UTC-6)

hey Mike, thanks that worked out, I have passed that first problem just by retyping letter by letter. Thanks!

Hi Jon,

So glad to hear that worked! We’re always happy to help.

Regards,
Mike


Render Support Engineer, MT (UTC-6)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.