我在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