On Tuesday, February 18, 2014 4:22:23 PM UTC, Javix wrote: > On Tuesday, 18 February 2014 17:08:47 UTC+1, Ganesh Ranganathan wrote: >
> > For other files you have to add config.assets.precompile += %w(filename.css). > > > I found the way to make it work: > > > add/modify the following line in environments/production.rb: > > > config.serve_static_assets = true > config.assets.compile = true > > The default is for .serve_static_assets to be false, since normally in production one lets apache, nginx or a CDN handle static assets Fred > Then run again > > > $ RAILS_ENV rake assets:precompile > $ rails s -e production > > > And it works. > > > Any idea ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3aedcbd4-afb0-41f9-9f43-511fc32b3749%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

