使用新应用程序覆盖 Heroku 上的应用程序
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你用过heroku rename命令吗?
http://devcenter.heroku.com/articles/renaming-apps
当您更改在heroku应用程序的子域中,您可以更改git推送url(即heroku git远程)。因此,您还需要使用 heroku rename 命令来与 heroku 建立正确的 git“连接”。
Have you used the heroku rename command?
http://devcenter.heroku.com/articles/renaming-apps
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.