将rails应用程序推送到Heroku

时间:2016-05-06 04:35:07

标签: ruby-on-rails ruby git heroku

我按照Heroku的设置,创建了一个名为escene的存储库,然后将其克隆到我的桌面。但是,我已经开发了一个应用程序并将其链接到github,Appversionzero,我想将其上传到Heroku。

我导航到我的Appversionzero目录,检查我的遥控器添加了我的heroku配置文件'heroku git:remote -a escene'所以我有:

heroku  https://git.heroku.com/escene.git (fetch)
heroku  https://git.heroku.com/escene.git (push)
origin  https://github.com/Keenangp/appversionzero.git (fetch)
origin  https://github.com/Keenangp/appversionzero.git (push)

但是我收到了这个错误:

`To https://git.heroku.com/escene.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://git.heroku.com/escene.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.`

这是因为我本地文件中的克隆存储库仍然链接到heroku上的应用程序吗?总而言之,我需要设置一个远程链接我的Appversionzero到我的heroku ref。所以我可以用'git push heroku master'来推动它。

由于 (编辑:我看到escene clone实际上已经在Appversionzero的根目录中了。)

0 个答案:

没有答案