My Capistrano successfully precompiles all assets in the pipeline and generates the application.js and application.css files. However, my application is still searching for separate .js and .css files that are not on the server, resulting in numerous 404 not found responses from the nginx server.
The stylesheets and JavaScript files are loaded in the app/views/layouts/application.html.haml file with:
= stylesheet_link_tag "application", media: "all"
= javascript_include_tag "application"
In the app/assets/javascript/application.js file, the components are loaded as follows:
//= require jquery
//= require jquery_ujs
//= require jquery.ui.datepicker
//= require jquery.timepicker
//= require colorbox-rails
//= require twitter/bootstrap
//= require_tree .
I am looking for a solution to make the app use only the single precompiled file once the precompile process has been completed. Any guidance or suggestions would be greatly appreciated.
Thank you.