diff --git a/config/application.rb.SAMPLE b/config/application.rb.SAMPLE --- a/config/application.rb.SAMPLE +++ b/config/application.rb.SAMPLE @@ -59,7 +59,20 @@ # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' - config.assets.precompile += ['announcement_refresh.js','effects.js','site_update.js','graders.css','problems.css'] + # ---------------- 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 + login main messages problems report site sites sources tasks + test user_admin users ).each do |controller| + config.assets.precompile += ["#{controller}.js", "#{controller}.css"] + end end end