我在Heroku上安装了一个应用程序名称的应用程序,但喜欢使用我不打算使用的代码库。我重命名了我不想要的项目的应用程序。然后,我用我正在处理的新应用程序推送给Cedar,并使用我停止工作的原始应用程序名称明确声明了我想要的项目名称。现在,当我去那个应用程序的名字,我只看到旧的应用程序,即使我推动了新的。我正在做什么来获得我正在使用我喜欢的应用程序名称的新应用程序?在Heroku上用新应用程序覆盖应用程序
我假设我必须手动删除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
你是否将git remote改为heroku以指向新的名称/应用程序? – andreiursan
不确定。我该怎么做呢?当我创建新的应用程序,我做了:“heroku创建 - 堆雪松”,然后“git push heroku主”,然后“heroku重命名AppNameILike” – AdamT
如果你去应用程序目录并使用以下命令: > git remote show Heroku的。比你能看到取和推URL是类似[email protected]:new_name.git? – andreiursan