2015-07-03 127 views
0

這是我在MAC終端和Heroku的主分支輸出:Heroku的推碼錯誤紅寶石

[remote rejected] master -> master (pre-receive hook declined) 
    error: failed to push some refs to 'https://git.heroku.com/projectname.git' 
    In heroku 
    -----> Ruby app detected 
    -----> Compiling Ruby/Rails 
    -----> Using Ruby version: ruby-2.0.0 
    -----> Installing dependencies using 1.9.7 
      Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
      You are trying to install in deployment mode after changing 
      your Gemfile. Run `bundle install` elsewhere and add the 
      updated Gemfile.lock to version control. 
      You have added to the Gemfile: 
      * ruby (= 2.0.0) 
      * pg (= 0.17.1) 
      Bundler Output: You are trying to install in deployment mode after changing 
      your Gemfile. Run `bundle install` elsewhere and add the 
      updated Gemfile.lock to version control. 

      You have added to the Gemfile: 
      * ruby (= 2.0.0) 
      * pg (= 0.17.1) 
    ! 
    !  Failed to install gems via Bundler. 
    ! 
    !  Push rejected, failed to compile Ruby app 
+0

你的問題在哪裏? –

+0

沒有它的不重複我搜索的所有問題,但沒有人解決我的問題 – user2128531

+0

這甚至不是一個問題,它如何可以重複。 –

回答

0

你可能會需要做bundle install至上,讓您的gem.lock文件達之前推到heroku .....

+0

我已經做了捆綁包安裝工作正常這是heroku的問題 – user2128531

+0

捆綁安裝運行良好,問題只在heroku推 – user2128531

+1

解決了我把我的pg和simple-在gemfile中開發gem – user2128531