使用新应用程序覆盖 Heroku 上的应用程序

发布于 2024-12-19 23:38:11 字数 588 浏览 4 评论 0原文

我在 Heroku 上有一个应用程序,其应用程序名称是我喜欢的,但其代码库是我不打算使用的。我为我不想要的项目重命名了该应用程序。然后,我将我正在开发的新应用程序推送到 Cedar,并使用我停止开发的原始应用程序名称明确声明了我想要的项目名称。现在,当我转到该应用程序名称时,即使我将新应用程序推到了那里,我也只能看到旧应用程序。我该怎么做才能让我正在开发的新应用程序使用我喜欢的应用程序名称?

我假设我必须手动删除 Heroku 上的所有内容,然后再次执行“git push heroku master”,一切都会好起来的,但由于我对这一切仍然陌生,我想知道正确的程序是什么。

谢谢。

Here is what I mean:
http://AppNameILike.heroku.com
#rename it to:
http://AppNameIlike-OLD.heroku.com
#create new heroku app with new project (notice recycling the name I like):
http://AppNameILike.heroku.com
#This new app still shows my old app

I had an app up on Heroku with an app name I like but with a codebase I don't intend on using. I renamed the app for the project I don't want. I then pushed to Cedar with the new app I'm working on and explicitly declared the name of the project I want using the original app name which I stopped working on. Now when I go to that app name I only see the old app even though I pushed the new up up there. What do I do to get the new app I'm working on to work with the app name I like?

I'm assuming I have to manually delete everything on Heroku and then just do a "git push heroku master" again and everything will be fine but since I'm still new to all this I'd like to know what the proper procedure is.

Thank you.

Here is what I mean:
http://AppNameILike.heroku.com
#rename it to:
http://AppNameIlike-OLD.heroku.com
#create new heroku app with new project (notice recycling the name I like):
http://AppNameILike.heroku.com
#This new app still shows my old app

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忘东忘西忘不掉你 2024-12-26 23:38:11

你用过heroku rename命令吗?

http://devcenter.heroku.com/articles/renaming-apps

$ heroku rename newname
http://newname.heroku.com/ | [email protected]:newname.git
Git remote heroku updated

当您更改在heroku应用程序的子域中,您可以更改git推送url(即heroku git远程)。因此,您还需要使用 heroku rename 命令来与 heroku 建立正确的 git“连接”。

Have you used the heroku rename command?

http://devcenter.heroku.com/articles/renaming-apps

$ heroku rename newname
http://newname.heroku.com/ | [email protected]:newname.git
Git remote heroku updated

When you changed the subdomain of a heroku app, you change the git push url (i.e. the heroku git remote). Therefore you also need to use the heroku rename command for having a correct git "connection" to heroku.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文