heroku中的节点应用程序在本地运行,但我无法缩放dynos
我正在尝试在heroku中运行节点应用程序。Foreman负责在本地运行它,它可以毫无错误地推送到git。然而,当我运行heroku ps:scaleweb=1时,它说没有web这样的类型。我的Procfile就是这一行:web:node server.js,我认为它应该用于设置web类型 有人知道为什么会出问题吗?谢谢你的帮助 这是航站楼的复印件heroku中的节点应用程序在本地运行,但我无法缩放dynos,heroku,procfile,Heroku,Procfile,我正在尝试在heroku中运行节点应用程序。Foreman负责在本地运行它,它可以毫无错误地推送到git。然而,当我运行heroku ps:scaleweb=1时,它说没有web这样的类型。我的Procfile就是这一行:web:node server.js,我认为它应该用于设置web类型 有人知道为什么会出问题吗?谢谢你的帮助 这是航站楼的复印件 jmm-2:supportEmail jamesmatheson$ foreman start 14:35:07 web.1 | started
jmm-2:supportEmail jamesmatheson$ foreman start
14:35:07 web.1 | started with pid 36298
14:35:08 web.1 | app is running on /removed port/
14:35:08 web.1 | database open
^CSIGINT received
14:35:09 system | sending SIGTERM to all processes
SIGTERM received
14:35:09 web.1 | exited with code 1
jmm-2:supportEmail jamesmatheson$ heroku ps:scale web=1
Scaling web dynos... failed
! No such type as web.
Specity——应用程序名称(如Heroku中我的应用程序中所示)。刚才在这里回答了同样的问题:
这可能会帮助您: