Rails App - 如何切换Heroku主机

时间:2013-12-30 14:05:25

标签: heroku

我有一个rails应用程序的副本,我想用新的Heroku托管设置。如何删除旧的Heroku主机并重新设置?

1 个答案:

答案 0 :(得分:0)

您可以从control panel销毁应用程序。转到应用程序页面>设置,向下滚动到底部,然后按照删除应用部分中的说明进行操作。

enter image description here

然后你需要从你的git repo中删除远程条目。假设你叫它heroku

$ git remote remove heroku

您也可以从应用内部的命令行中删除该应用。

$ heroku apps:destroy

$ heroku help apps
apps:create [NAME]    #  create a new app
apps:destroy          #  permanently destroy an app
apps:info             #  show detailed app information
apps:join --app APP   #  add yourself to an organization app
apps:leave --app APP  #  remove yourself from an organization app
apps:lock             #  lock an organization app to restrict access
apps:open             #  open the app in a web browser
apps:rename NEWNAME   #  rename the app
apps:unlock           #  unlock an organization app so that any org member can join it

然后使用

$ heroku apps:create

从Rails应用文件夹中创建新应用。