2015-07-03 115 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