Грешка в Gemfile с разгръщане на heroku

Чета това ръководство и когато се опитам да разположи първото ми приложение git казва:

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Detected Rails is not set to serve static_assets
       Installing rails3_serve_static_assets... done
-----> 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: rubygems repository http://rubygems.org/
       * rails (= 3.0.3)
       * sqlite3 (= 1.3.3)
       FAILED: http://devcenter.heroku.com/articles/bundler
 !     Heroku push rejected, failed to install gems via Bundler

To [email protected]:myapp.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myapp.git'

Някакво решение?


person Pedro    schedule 08.04.2012    source източник


Отговори (1)


За съжаление, не можете да внедрите в Heroku много добре от инсталация на Windows Rails.

Той ви казва, че не сте ангажирали файла веднага след като сте казали, че го игнорира, така че истинският въпрос, на който се опитвате да отговорите, е "защо Heroku не приема моя Windows Gemfile.lock файл?". Въз основа на това щях да извадя „Windows Gemfile.lock открит; игнориране“ и да го поставя в google или тук в Stack Overflow.

Това щеше да ви доведе до този предишен SO отговор: Why won' t Heroku приема моя Gemfile.lock в Windows?

person Benjamin Cox    schedule 08.04.2012
comment
Благодаря ти. Сега инсталирам VMWare и Ubuntu... тогава ще започна отново с книгата. - person Pedro; 08.04.2012