我運行這些命令錯誤:未能一些裁判推到 'https://git.heroku.com/radiant-chamber-18560.git'
- 的Heroku創建
- 混帳推Heroku的主
然後。
- git的遠程添加的Heroku
https://git.heroku.com/radiant-chamber-18560.git
- GIT中推heroku上主
應該怎麼辦?
我運行這些命令錯誤:未能一些裁判推到 'https://git.heroku.com/radiant-chamber-18560.git'
然後。
https://git.heroku.com/radiant-chamber-18560.git
應該怎麼辦?
確保您添加和本地提交代碼由
git add -A .
git commit -m "your commit message"
然後嘗試發送您當前的git HEAD
到Heroku的master
分支代替。
git push heroku HEAD:master
從您的錯誤,似乎Heroku無法檢測到您正在部署RoR應用程序。確保您的Gemfile
正在發送到Heroku(有關更多信息,請參見here)。你可以使用@ Felipe_Sabino的答案來確保它被添加到git中。
你也可以set the buildpack manually,但如果所有文件都正確,則不需要。
在推送到heroku之前,您是否已將代碼推送到git? – angkiki
@angkiki我不知道...我的heroku ssH是github。 –
即時通訊不好意思,但你怎麼能不知道你是否已經推動你的代碼到github然後再推向heroku?命令是'git add -A',然後是'git commit -m'「'最後'git push origin master' –
angkiki