gpt4 book ai didi

node.js - '找不到该进程类型' heroku Node 部署

转载 作者:搜寻专家 更新时间:2023-10-31 22:38:09 24 4
gpt4 key购买 nike

当我尝试执行 $ 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)

最佳答案

我发现了问题所在,在我的项目中,我没有推送到 master 分支,而是执行了错误的 git 代码。因此,如果您在不同的分支上工作,则推送到 Heroku 的正确方法如下:

git push heroku <branch_name>:master

关于node.js - '找不到该进程类型' heroku Node 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44011770/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com