Assets not showing up in production with "rails s" command with Chrome browser -


none of assets, such images, javascripts, , styling features showing when run following command:

rails_env=production rails s 

then go http://localhost:3000 , application comes up, has no styling @ all.

i did precompile assets:

➜  myapp git:(master) ✗ bundle exec rake assets:precompile --trace  invoke assets:precompile (first_time)  execute assets:precompile  /users/me/.rvm/rubies/ruby-1.9.3-p545/bin/ruby /users/me/.rvm/gems/ruby-1.9.3-p545@myapp/bin/rake assets:precompile:all rails_env=production rails_groups=assets --trace  invoke assets:precompile:all (first_time)  execute assets:precompile:all  invoke assets:precompile:primary (first_time)  invoke assets:environment (first_time)  execute assets:environment  invoke environment (first_time)  execute environment  invoke tmp:cache:clear (first_time)  execute tmp:cache:clear  execute assets:precompile:primary  invoke assets:precompile:nondigest (first_time)  invoke assets:environment (first_time)  execute assets:environment  invoke environment (first_time)  execute environment  invoke tmp:cache:clear (first_time)  execute tmp:cache:clear  execute assets:precompile:nondigest 

this works fine in safari, can't figure out why chrome won't load stuff. cleared out browser cache also.

in config/environments/production.rb, make sure application configured serve static assets:

config.serve_static_assets = true 

by default, rails assumes static assets served elsewhere (e.g. apache, nginx, etc.)


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -