2012-03-17 76 views
1

我正在将我的应用从Rails 3.0升级到Rails 3.1。为此,我需要将我的Heroku堆栈升级到Cedar,而不是当前使用的Bamboo。从Heroku Bamboo堆栈升级到Cedar堆栈

我正在通过following tutorial ,并且我陷入了部署git push heroku master的部分。当我运行这个git时,假设我正在推送到我的Bamboo应用程序,当时我真的想部署到我的新Cedar堆栈。

PhotoRambler tonybeninate$ heroku apps 
    photoramblr 
    young-river-1492 

young-river-1492是我的新雪松应用程序,但我不知道如何部署到它。任何人都可以建议吗?谢谢。

或者我需要先删除我的Bamboo堆栈吗?

+1

看看[这个问题和答案](http://stackoverflow.com/questions/5129598/how-to-link-a-folder-with-an-existing-heroku-app/5129733#5129733)它解释Heroku如何决定推送哪个应用程序。 – 2012-03-17 21:44:18

回答

0

查看本教程migrating to the Cedar stack - 特别是关于creating a new Cedar app and deploying的部分。你在正确的轨道 - 你只需要指定哪个应用程序git应该推动,因为你现在有不止一次可供选择。

  • 找出远程调用您的新应用

>git remote

  • 推向新的远程

>git push young-river-1492-heroku young-river-1492

也可以重命名ÿ我们的遥控器git remote rename

如果你愿意,你可以编辑你的配置文件,而不是ala Neil's answer,或者在你用长表单成功推送一次后编辑配置,以确保它能正常工作。

1

不,您的.git/config仍然认为heroku是您的旧应用程序。如果您打开该文件并编辑遥控器,它将开始推送到正确的位置。

1

您是否尝试过检查如何为新应用程序添加您的heroku回购?即

git remote remove heroku #to remove the link to photoramblr 

git remote add heroku [email protected]:young-river-1492.git # to add the new one 

然后

git push heroku master 

您可能还需要删除您的竹应用程序,一旦新的一次是,不然你需要指定哪些应用程序的Heroku为命令,即:

#instead of 
heroku rake db:migrate 
#you'll have to do 
heroku rake db:migrate --app young-river-1492