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