Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
heroku中的节点应用程序在本地运行,但我无法缩放dynos_Heroku_Procfile - Fatal编程技术网

heroku中的节点应用程序在本地运行,但我无法缩放dynos

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

我正在尝试在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 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中我的应用程序中所示)。刚才在这里回答了同样的问题:

这可能会帮助您: