新手问题 rails 在生产环境下部署出现错误

xiaoxiao · July 01, 2013 · Last by xiaoxiao replied at July 01, 2013 · 2230 hits

错误如下 /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on': No such file to load -- /root/Desktop/materialapp/app/assets/images/resources/sass/../../resources/themes (LoadError) 这是什么原因,在 developmen 环境下都是好的。切换到 production 就不行了。rails s -e production 就出现以上错误。。。。 我的 ruby 是 1.9.2 rails 3.2.13

你是不是木有编译 assets

rake assets:precompile

You need to Sign in before reply, if you don't have an account, please Sign up first.