Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Git存储库名称不更新_Ruby On Rails_Git_Heroku - Fatal编程技术网

Ruby on rails Git存储库名称不更新

Ruby on rails Git存储库名称不更新,ruby-on-rails,git,heroku,Ruby On Rails,Git,Heroku,我正在做一个RubyonRails项目,使用Heroku运行我的应用程序,我遇到了一个非常恼人的问题。我的应用程序中有很多bug,所以我决定删除我的应用程序,然后重新部署到新的应用程序上。问题是,每当我尝试 >> heroku create \\ works as intended >> git push heroku master \\ tries to push using the erased app name, fails >> remote: !

我正在做一个RubyonRails项目,使用Heroku运行我的应用程序,我遇到了一个非常恼人的问题。我的应用程序中有很多bug,所以我决定删除我的应用程序,然后重新部署到新的应用程序上。问题是,每当我尝试

>> heroku create  \\ works as intended
>> git push heroku master \\ tries to push using the erased app name, fails
>> remote: !       No such app as old-app-75226.

我如何告诉系统,在本例中是C9,我希望它推送到新的应用程序?

您需要先从heroku分离存储库,然后重新创建

git remote rm heroku
heroku create
git push heroku master