我正在尝试在 heroku 中运行节点应用程序。Foreman 可以在本地运行它,它会毫无错误地推送到 git。但是,当我运行时heroku ps:scale web=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.