2012-07-25 56 views
1

試圖端口的Heroku雪松在Ruby 1.9.2到Ruby 1.9.3失敗:的Heroku雪松不升級到紅寶石1.9.3

2012-07-25T22:09:48+00:00 heroku[slugc]: Slug compilation started 
2012-07-25T22:11:23+00:00 heroku[api]: Deploy abdaf18 by [email protected] 
2012-07-25T22:11:23+00:00 heroku[api]: Release v244 created by [email protected] 
2012-07-25T22:11:23+00:00 heroku[web.1]: State changed from up to starting 
2012-07-25T22:11:24+00:00 heroku[deployhooks]: Notified New Relic about the deploy 
2012-07-25T22:11:24+00:00 heroku[slugc]: Slug compilation finished 
2012-07-25T22:11:26+00:00 heroku[web.1]: Stopping all processes with SIGTERM 
2012-07-25T22:11:27+00:00 app[web.1]: Exiting 
2012-07-25T22:11:28+00:00 heroku[web.1]: Process exited with status 0 
2012-07-25T22:11:28+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 12558` 
2012-07-25T22:11:29+00:00 app[web.1]: Your Ruby version is 1.9.2, but your Gemfile specified 1.9.3 
2012-07-25T22:11:30+00:00 heroku[web.1]: Process exited with status 18 
2012-07-25T22:11:30+00:00 heroku[web.1]: State changed from starting to crashed 
2012-07-25T22:11:30+00:00 heroku[web.1]: State changed from crashed to starting 
2012-07-25T22:11:36+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 36407` 
2012-07-25T22:11:37+00:00 app[web.1]: Your Ruby version is 1.9.2, but your Gemfile specified 1.9.3 
2012-07-25T22:11:39+00:00 heroku[web.1]: Process exited with status 18 
2012-07-25T22:11:39+00:00 heroku[web.1]: State changed from starting to crashed 
2012-07-25T22:11:40+00:00 heroku[router]: Error H10 (App crashed) -> GET gitwatcher.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= 
2012-07-25T22:11:41+00:00 heroku[router]: Error H10 (App crashed) -> GET gitwatcher.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes= 
2012-07-25T22:11:41+00:00 heroku[router]: Error H10 (App crashed) -> GET gitwatcher.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes= 

UPDATE

我具有

其次 Heroku docs
ruby '1.9.3' 

到我的Gemfile和bundler --pre

[email protected]:~/rails/github/gitwatcher$ gem list bundler 

*** LOCAL GEMS *** 

bundler (1.2.0.pre.1, 1.1.4) 
[email protected]:~/rails/github/gitwatcher$ 

UPDATE

我follwed Heroku的建議:If absent or not the first entry, add bin: to the config with heroku config:add.,但它不工作:

[email protected]:~/rails/github/gitwatcher$ heroku config -s | grep PATH 
GEM_PATH=vendor/bundle/ruby/1.9.1 
PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin 
[email protected]:~/rails/github/gitwatcher$ 

...這很奇怪,因爲在控制檯運行紅寶石-v還給了corret版本:

[email protected]:~/rails/github/gitwatcher$ heroku run:detached "ruby -v" 
Running `ruby -v` detached... up, run.1 
Use `heroku logs -p run.1` to view the output. 
[email protected]:~/rails/github/gitwatcher$ heroku logs -p run.1 
2012-07-25T22:51:57+00:00 heroku[run.1]: Starting process with command `ruby -v` 
2012-07-25T22:51:57+00:00 app[run.1]: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] 
2012-07-25T22:51:57+00:00 heroku[run.1]: State changed from starting to complete 
2012-07-25T22:51:58+00:00 heroku[run.1]: Process exited with status 0 
[email protected]:~/rails/github/gitwatcher$ 

UPDATE

...而且我所做的:

heroku config:add RUBY_VERSION=ruby-1.9.3-p194 
heroku config:add PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin 
recompile (change + git commit + git push heroku +master) 

,但沒有,它墜毀在重新編譯後這樣說:

​​

UPDATE

開業Heroku的呼叫請求#58410

+1

你是否按照https://devcenter.heroku.com/articles/ruby-versions#troubleshooting更新了'PATH'? – matt 2012-07-25 22:33:50

+0

不,我沒有...我正在嘗試 – 2012-07-25 22:45:22

+0

@matt完成,但它不起作用 – 2012-07-25 22:50:51

回答

1

這不是一個紅寶石版本的問題,事實上我注意到Heroku的編譯過程中出現以下錯誤,即使它沒有阻止沒有其他問題完成了部署和推動:

-----> Preparing app for Rails asset pipeline 

     Running: rake assets:precompile 

     rake aborted! 

     Invalid CSS after "...nd-image:url(""": expected ")", was "/assets/twitter..." 

     (in /tmp/build_19ypab978ku1z/app/assets/stylesheets/application.css) 

     Tasks: TOP => assets:precompile:primary 

     (See full trace by running task with --trace) 

     Precompiling assets failed, enabling runtime asset compilation 

     Injecting rails31_enable_runtime_asset_compilation 

     Please see this article for troubleshooting help: 

     http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting 

然後尋找更好到Heroku的日誌,我也看到了這一個:

psych/syntax_error.rb:5:in 'initialize': wrong number of arguments (1 for 6) (ArgumentError) 

和谷歌上搜索事實證明something similar,我試着和它的作品!

+0

謝謝!我有類似的問題,阻止它安裝「bin和本機擴展」,也沒有阻止它以相同的方式部署和破壞。 – 2012-09-26 15:43:14