ruby - Running thin server in production mode isn't loading my assets -
ruby - Running thin server in production mode isn't loading my assets -
when load thin
so:
thin start -e production
and seek access 1 of pages, in log output:
cache: [get /] miss cache: [get /assets/main-bd1ef4b153740fb69fd615304b87ad0d.css] miss cache: [get /assets/jqmodal-8fa734bf4f58524b2799abd73ab7d34f.css] miss cache: [get /assets/jquery-544665ba1d5b4f793290421aafed85c9.js] miss cache: [get /assets/application-00b97aa2429046c0c43802f07b756b46.js] miss
these files exist in assets
directory under public
.
i've run command also:
rals_env=production rake assets:precompile
i've tried accessing file /public/assets/application.js
in browser this:
http://localhost:3000/application.js
which gives me 404 error (even though file exists in /public/assets
file can read when create request file when server in development mode.
anyone have ideas?
rails serving static files turned off in production (config/environments/production.rb
) default:
# disable rails's static asset server (apache or nginx this) config.serve_static_assets = false
the lean server not configured serve static assets, , requests assets failing.
ruby ruby-on-rails-3 asset-pipeline thin
Comments
Post a Comment