堆栈溢出推送没有任何理由被拒绝

时间:2015-04-14 20:02:45

标签: ruby-on-rails heroku

我试图推送到heroku并且进入verifying deploy...步骤但是然后无缘无故拒绝推送:

remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
remote: =====> Detected Framework: Ruby
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.1.2
remote: -----> Installing dependencies using 1.7.12
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Fetching source index from https://rubygems.org/
remote: Verifying deploy..................................................
remote:
remote: !   Push rejected to <APP_NAME_OMITTED>.
remote:
 ! [remote rejected] test_botched_deploy -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/APP-NAME-OMITTED.git'

我不知道该为什么谷歌。有没有办法为heroku部署启用详细模式?

1 个答案:

答案 0 :(得分:0)

假设在推送之前一切都在本地运行,一个好的起点就是确保推送了GemfileGemfile.lock.的当前版本