我正在阅读heroku 文档。我正在将我的 Node 应用程序推送到heroku,它工作正常,但我需要更改网站名称。 https://devcenter.heroku.com/articles/renaming-apps
它告诉我,我可以非常简单地重命名我的应用程序
heroku apps:rename newname
第 2 步:我只是在 git 上更改了它,然后就可以访问 heroku 网站了。
git remote rm heroku
heroku git:remote -a newname
我对 git 执行了后续步骤并收到了
! `git:` is not a heroku command.
当我尝试推送到heroku master时找不到应用程序。我还缺少其他步骤吗?
最佳答案
也许您安装了旧版本的heroku 客户端。运行heroku版本
时你会得到什么? heroku git:remote -a
命令适用于最新版本:
$ heroku version
heroku-toolbelt/3.37.2 (x86_64-darwin10.8.0) ruby/1.9.3
heroku-cli/4.19.28-8f2bd89 (amd64-darwin) go1.4.2
如果您看到旧版本,请运行 heroku update
并重试。
关于node.js - heroku 应用程序重命名中缺少步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30493062/