rails 4.2 capistrano 3 unbuntu nginx puma, geting routing error/no assets shows up -


after following tutorial, tried able set rails application on ec2 unbuntu instance, running nginx web server , puma app server, deployed capistrano 3. however, none of assets showing up, , i'm getting routing errors basic functions of devise gem such logging out. chrome dev tool console shows 404 errors compiled application.css , application.js files.

i think assets there because if ssh instance , go folder app is, can see bunch of files under public/assets. also, if check capistrano logs, can find line bundle exec rake assets:precompile, , status successful. tried things going production.rb file , changing config.serve_static_files = env['rails_serve_static_files'].present? config.serve_static_files = true

but still no assets. think biggest suspect there sort of routing error, because don't understand how web servers, app servers, , aws instances interact each other. point me in right direction on debugging this? if need see specific config file please comment below.

ok turns out had copy secrets.yml local repo app shared folder in [my_app_name]/shared/config. app didn't know secret key base.

although i'm still confused on why not having secret.yml prevent assets served...


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -