我正在使用Capistrano將一個簡單的Rails應用程序部署到SUSE服務器。雖然部署在下方勾執行Rails資產預編譯:Segmentation Fault + Ruby 1.9.3p392
after "deploy:update_code" do
run <<-CMD
cd #{current_release} &&
RAILS_ENV=#{rails_env} bundle exec rake assets:precompile --trace
CMD
end
我得到下面的長錯誤跟蹤
servers: ["application_server.com"]
[application_server.com] executing command
*** [err :: application_server.com] ** Invoke assets:precompile (first_time)
*** [err :: application_server.com] ** Execute assets:precompile
*** [err :: application_server.com] /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby /opt/apps/myapplication.com/shared/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=devutility RAILS_GROUPS=assets --trace
*** [err :: application_server.com]
*** [err :: application_server.com] /opt/apps/myapplication.com/shared/bundle/ruby/1.9.1/gems/therubyracer-0.11.4/lib/v8/init.so:
*** [err :: application_server.com] [BUG]
*** [err :: application_server.com] Segmentation fault
*** [err :: application_server.com] ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
*** [err :: application_server.com] -- Control frame information -----------------------------------------------
*** [err :: application_server.com] c:0054
*** [err :: application_server.com] p:-4755442
*** [err :: application_server.com] s:0156 b:0156
*** [err :: application_server.com] l:000155
*** [err :: application_server.com] d:000155
*** [err :: application_server.com] TOP
*** [err :: application_server.com]
*** [err :: application_server.com] c:0053
*** [err :: application_server.com] p:----
*** [err :: application_server.com] s:0154 b:0154
*** [err :: application_server.com] l:000153
*** [err :: application_server.com] d:000153
*** [err :: application_server.com] CFUNC
*** [err :: application_server.com] :require
*** [err :: application_server.com]
*** [err :: application_server.com] c:0052
*** [err :: application_server.com] p:0035
*** [err :: application_server.com] s:0150 b:0150
*** [err :: application_server.com] l:000149
*** [err :: application_server.com] d:000149
*** [err :: application_server.com] TOP
在這裏找到完整的曲線在我的GIST https://gist.github.com/ankit8898/5051531和Gemfile中也存在於它。
任何幫助將非常有幫助。
那麼我從我的Gemfile中刪除rubyracer,並使用Node.js.它的工作!謝謝 – AnkitG 2013-02-27 22:35:52