'无法找到该进程类型'heroku节点部署

Ami*_*avi 5 deployment heroku node.js

当我尝试时,我得到'找不到那个过程类型' $ heroku ps:scale web=1.我看了一些其他解决方案,建议确保我的Procfile正确拼写并正确推送,这是.

这是我得到的确切错误:

    heroku ps:scale web=1
Scaling dynos... !
 ?    Couldn't find that process type.
Error: ENOENT: no such file or directory, open '/Users/XXXXXX/.cache/heroku/error.log'
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.writeFileSync (fs.js:1316:33)
    at Object.fs.appendFileSync (fs.js:1362:6)
    at log (/usr/local/Cellar/heroku/6.6.7/libexec/node_modules/heroku-cli-util/lib/errors.js:87:6)
    at handleErr (/usr/local/Cellar/heroku/6.6.7/libexec/node_modules/heroku-cli-util/lib/errors.js:102:9)
    at process._tickCallback (internal/process/next_tick.js:109:7)
Run Code Online (Sandbox Code Playgroud)

Ami*_*avi 9

我发现问题是什么,在我的项目中,我没有推动到主分支,我正在执行错误的git代码.因此,如果您正在使用不同的分支,则推送到Heroku的正确方法如下:

git push heroku <branch_name>:master
Run Code Online (Sandbox Code Playgroud)