So, I'm currently following this tutorial: https://devcenter.heroku.com/articles/nodejs to start a simple Node.js app. I've got to the part where foreman is used to run the app locally (under Declaring process types with Procfile), and I'm getting an error telling me that the Procfile does not exist. My Procfile is in the same directory as my code, etc. All of the steps up till now have been fine. I skipped past this part in the tutorial to try and run the application on Heroku, but this line heroku ps:scale web=1
under Visit your application tells me that there is "No such type as web"... I'm using Windows to develop my app. Any help would be much appreciated. :-)
EDIT: web: node web.js
is the contents of the Procfile, and I'm following the tutorial so I assume it's being committed... could you check the tutorial please and tell me if it is?
If you are using heroku. yml as your build manifest, a Procfile is not required. The commands you specify in the run section of heroku. yml should use the same format as a Procfile (except release ).
A Procfile is not necessary to deploy most languages supported by Deis. The platform automatically detects the language and supplies a default web process type to boot the server. Creating an explicit Procfile is recommended for greater control and flexibility over your app.
The Procfile (literally a file titled Procfile ) is located in the root of an application's file system, and can be used to specify a variety of processes. belongs to one of the declared process types. You can refer to an applications config variables in the command using $ syntax.
I had also received the Procfile does not exist
error. The issue with mine was that I had left the '.txt' extension on the file. Once I removed the file extension and ran the foreman start
it worked perfectly, hope this help =)
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