I have a rails app that I am deploying via capistrano. The app deploys fine, however javascript is not loading. If I view source on the index page and click on
<script src="/javascripts/application.js?1336592048" type="text/javascript"></script>
the subsequent page includes…
<p><pre>No route matches "/javascripts/application.js"</pre></p>
Everything works great in development and I think the issue is the folder structure on the server. I tried adding
config.action_controller.relative_url_root rails
but nginx just spins its wheels when loading the page and eventually times out. Any ideas?
Try
In deploy.rb