I've made a little Node.js app and want to deploy it on Heroku. I'm following the Heroku doc and everything works fine. foreman start correctly start my app.
I push it to Heroku, no problem (except a warning because I don't specify the Node.js version, nothing bad) and then, when I want to do the heroku ps:scale web=1 I have this error :
Scaling web dynos... failed
! No such type as web.
Here is the content of the Procfile
web: node app.js
Any idea ?
Probably you forgot to push Procfile to heroku as shown below:
$ heroku ps:scale web=1
Scaling web dynos... failed
! Resource not found
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Procfile
no changes added to commit (use "git add" and/or "git commit -a")
$ git add Procfile
$ git commit -m "Add Procfile for Heroku"
$ git push heroku
$ heroku ps:scale web=1
Scaling web dynos... done, now running 1
I hope it helps :)
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