diff --git a/config/application.rb.SAMPLE b/config/application.rb.SAMPLE --- a/config/application.rb.SAMPLE +++ b/config/application.rb.SAMPLE @@ -59,6 +59,14 @@ # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + # ---------------- IMPORTANT ---------------------- + # If we deploy the app into a subdir name "grader", be sure to do "rake assets:precompile RAILS_RELATIVE_URL_ROOT=/grader" + # moreover, using the following line instead also known to works + #config.action_controller.relative_url_root = '/grader' + + #font path + config.assets.paths << "#{Rails}/vendor/assets/fonts" + config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js'] config.assets.precompile += ['local_jquery.js','tablesorter-theme.cafe.css'] %w( announcements configurations contests contest_management graders heartbeat