-2

得到与(7)相同的问题,并尝试了所有可能的答案,但仍然没有取得任何进展。我希望你能有所帮助(请记住我是新手)。这里是问题的描述@hand: Counting objects: 7, done。Delta 压缩最多使用 4 个线程。压缩对象:100% (4/4),完成。写入对象:100% (4/4),403 字节,完成。总计 4(增量 3),重复使用 0(增量 0)

-----> Heroku receiving push
-----> Rails app detected
-----> Configure Rails 3 to disable x-sendfile
       Installing rails3_disable_x_sendfile... done
-----> Configure Rails to log to stdout
       Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
       Unresolved dependencies detected; Installing...
       Using --without development:test
       Windows Gemfile.lock detected, ignoring it.
       You have modified your Gemfile in development but did not check
       the resulting snapshot (Gemfile.lock) into version control

       You have added to the Gemfile:
       * source: source at vendor/engines
       * source: git://github.com/Dougui/refinerycms-portfolio.git (at master)
       * source: rubygems repository http://rubygems.org/
       * sqlite3
       * rake (= 0.8.7)
       * refinerycms (~> 1.0.3)
       * refinerycms-i18n (~> 1.0.0)
       * fog
       * refinerycms-portfolio
       * refinerycms-geolocations (= 1.0)
       * nokogiri

       You have changed in the Gemfile:
       * refinerycms-portfolio from `git://github.com/Dougui/refinerycms-portfol
io.git (at master)` to `no specified source`
       * refinerycms-geolocations from `source at vendor/engines` to `no specifi
ed source`
       FAILED: http://devcenter.heroku.com/articles/bundler
 !     Heroku push rejected, failed to install gems via Bundler

To git@heroku.com:vivid-rain-722.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:vivid-rain-722.git'

谢谢

4

1 回答 1

0

根据错误,您gemfile.lock的与存储库中的不同。尝试执行以下步骤。

bundle install
git add gemfile.lock
git commit -m "Add gemfile.lock"
git push heroku master
于 2011-08-06T04:19:33.943 回答