the trick to precompile was: RAILS_ENV=production bundle exec rake assets:precompile