Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Web Dyno failing

Tags:

node.js

heroku

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 ?

like image 608
Axiol Avatar asked Jan 27 '26 19:01

Axiol


1 Answers

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

like image 181
Agustin Treceno Avatar answered Jan 30 '26 12:01

Agustin Treceno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!