my development , test servers working fine, having trouble production server. sequence:
rails_env=production bundle exec rake assets:precompile sudo httpd service restart
when try go production server browser, dreaded:
we're sorry, went wrong
looking @ production.log, see:
actionview::template::error (statics.css isn't precompiled)
so, added following config/application.rb:
config.assets.precompile += ['statics.css']
still got error screen, production log says:
actionview::template::error (statics.js isn't precompiled)
so, added following config/application.rb:
config.assets.precompile += ['statics.js']
i precompiled assets , restarted server, i'm still getting same error message:
actionview::template::error (statics.js isn't precompiled)
i tried following:
config.assets.precompile += %w( *.css *.js ) config.assets.precompile += ('*.css','*.js') config.assets.precompile += ('.css','.js')
but keep getting error:
actionview::template::error (statics.js isn't precompiled)
these suggestions found on stackoverflow. ideas?
this fixed issue me: go config/environments/production.rb
, set config.assets.compile = true
.
Comments
Post a Comment