Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Coudn't find that formation' error when adding web dynos to Heroku flask app?

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 -
like image 793
beciaha Avatar asked Jan 29 '26 02:01

beciaha


1 Answers

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 named Procfile exactly, and not anything else. For example, Procfile.txt is 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?

like image 93
Jason Avatar answered Jan 31 '26 15:01

Jason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!