Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Procfile does not exist, and problems starting web processes

Tags:

node.js

heroku

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?

like image 204
Louise K Avatar asked Nov 10 '12 16:11

Louise K


People also ask

Is Procfile necessary for Heroku?

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 ).

Is Procfile necessary?

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.

Where is Heroku Procfile located?

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.


Video Answer


1 Answers

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 =)

like image 163
afreeland Avatar answered Oct 07 '22 04:10

afreeland