I've just installed flask and heroku, and despite not having a problem with creating a simple app, now i download .zip file with ready code i wanted add and run this app on my heroku profile.
I get following error:
heroku ps:scale web=1
Scaling dynos... failed
! Couldn't find that formation.
Procfile:
web: gunicorn nameapp:app --log-file -
As you've anticipated, this almost certainly relates to your Procfile. Some obvious ones to check first (quoting Heroku.com):
A Procfile is a file named
Procfile. It should be namedProcfileexactly, and not anything else. For example,Procfile.txtis not valid. The file should be a simple text file. The file must be placed in the root directory of your application. It will not function if placed in a subdirectory.
If this doesn't help, it's possible that your Procfile is being ignored by git. See a similar question here: How to overcome 'Coudn't find that formation' error when adding web dynos to Heroku django app?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With