2012-04-08 113 views
0

我讀this manual,當我嘗試部署我的第一個應用程序的git說:錯誤的Gemfile與Heroku的部署

-----> 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' 

任何解決方案?

回答

1

不幸的是,您無法從Windows Rails安裝中很好地部署到Heroku。

它告訴你,在你忽略文件後你沒有提交該文件,所以你試圖回答的真正問題是「爲什麼Heroku不接受我的Windows Gemfile.lock文件?」 。基於這一點,我會掏出「Windows Gemfile.lock檢測到;忽略它」並將其粘貼到谷歌或在堆棧溢出這裏。

那會導致你以前的答案:Why won't Heroku accept my Gemfile.lock in Windows?

+0

謝謝。我現在正在安裝VMWare和Ubuntu ....然後我將再次開始這本書。 – Pedro 2012-04-08 02:04:26