Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heroku scale web=1 fails with "record not found" - procfile problem?

Tags:

node.js

heroku

I have a procfile:
web: node index.js

When I run "heroku scale web=1" I get the error Scaling web processes... Record not found. I can't find any explanation of this error or what might cause it, but as far as I can tell it means heroku scale couldn't find a "web" entry in the procfile it attempts to use.

I've deployed my app, I can run heroku run node index.js on the server and see no errors. I can run foreman start locally and it starts up a fully functioning instance of my app.

As far as I can tell it seems that the heroku scale command just isn't seeing the contents of my procfile (and I know the deployed version is identical to my local version - I checked with heroku run nano index.js).

Any help would be greatly appreciated, I just want to resolve how to get heroku scale web=1 working for me.

like image 386
ganz Avatar asked Jul 17 '11 06:07

ganz


1 Answers

And the answer is... heroku uses a case sensitive filesystem and expects "Procfile", not "procfile". Locally I have a case insensitive filesystem and so I can run foreman start just fine.

Changing the file to Procfile and doing another push resolved the problem and I was able to run heroku scale web=1 without further issue.

like image 91
ganz Avatar answered Oct 30 '22 11:10

ganz