【问题标题】:Missing steps in heroku app renamingheroku 应用程序重命名中缺少步骤
【发布时间】:2023-03-21 04:08:01
【问题描述】:

我在 heroku 文档上。我正在将我的节点应用程序推送到 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 主服务器时找不到应用程序。我还缺少另一个步骤吗?

【问题讨论】:

标签: node.js heroku


【解决方案1】:

也许您安装了旧版本的 heroku 客户端。运行heroku version 会得到什么? 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 并重试。

【讨论】:

    猜你喜欢
    • 2022-11-10
    • 2020-06-20
    • 2011-11-10
    • 1970-01-01
    • 2019-06-27
    • 1970-01-01
    • 2013-02-19
    • 1970-01-01
    • 2012-07-15
    相关资源
    最近更新 更多