我的rails应用程序出现问题,尝试运行rake db:migrate on server(或者例如rails c)我得到这个堆栈跟踪:
耙子流产了! LoadError:/home/users/ruby/.gems/extensions/x86_64-linux/2.1.0-static/therubyracer-0.12.2/v8/init.so:ELF文件OS ABI无效 - / home / users / ruby /。宝石/扩展/ x86_64的-LINUX / 2.1.0静电/ therubyracer-0.12.2 / V8 / init.so /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/v8.rb:4:inrequire' /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/v8.rb:4:in
' /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/therubyracer.rb:1:inrequire' /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/therubyracer.rb:1:in
' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:inrequire' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in
块(2级)in require' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:ineach' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in
阻止在需要' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:ineach' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in
要求' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler.rb:134:inrequire' /home/users/ruby/public_html/uvindex/config/application.rb:7:in
' / home / users / ruby / public_html / uvindex / Rakefile:4:in`'
uname -a:
Linux 68798.v.tld.pl 3.10.63.core2.37#1 SMP Thu Dec 18 15:25:17 CET 2014 x86_64 GNU / Linux
答案 0 :(得分:0)
在运行迁移时,您没有传递Rails环境。
rake db:migrate RAILS_ENV= <your rails env>