我正在使用 Rails 3。
环境
Mac:Nginx + 乘客 4.0 + Ruby 2.0 (RVM)
在 Mac 下,我可以很好地在开发模式下(通过 rails 服务器)运行我的应用程序,
但是当我在 nginx 上运行时,它会显示错误。即使我运行 bundle install 也无法工作
git://github.com/rweng/jquery-datatables-rails.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
在另一个环境中,Ubuntu。
当我将应用程序从开发模式运行到生产模式时,我也遇到了一些问题。
RAILS_ENV=production bundle exec rake assets:precompile
我完全不知道,我不认为这是css问题?
也许它没有安装一些 gem 或者在生产模式下做一些前置工作
请给我一些建议,非常感谢
rake aborted!
Invalid CSS after "background-color: ": expected expression (e.g. 1px, bold), was "#white;"
(in /Volumes/COMMON/Dropbox/rails/zeus/app/assets/stylesheets/application.css)
(sass):1738
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:1145:in `expected'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/script/lexer.rb:199:in `expected!'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/script/parser.rb:471:in `assert_expr'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/script/parser.rb:49:in `parse'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:1021:in `sass_script'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:881:in `value!'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:858:in `declaration'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:581:in `block in declaration_or_ruleset'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:1121:in `call'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:1121:in `rethrow'
/Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/sass-3.2.10/lib/sass/scss/parser.rb:591:in `declaration_or_ruleset'
nginx设置
18 passenger_root /Users/poc/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18;
19 passenger_ruby /Users/poc/.rvm/wrappers/ruby-2.0.0-p247/ruby;