Passenger + Apache + Rails - serve static assets? -
how have rails serve /assets/stylesheets , /assets/javascripts? don't particularly care rails serves files, , i'm not sure why they're not found when deploy staging.
case 1: if assets not inside app
the problem might using stylesheets not inside app.
in case need tell passenger files..so need first create symlink this:
ln -s <path-to-your-hosted-assets>/assets assets
usually can check these symlinks here /local/docroot , ll see existing symlinks.
case 2: if assets inside app
do precompile assets , see if can see assets.
hope helps!
Comments
Post a Comment