Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlsherrill/9793345 to your computer and use it in GitHub Desktop.
Save jlsherrill/9793345 to your computer and use it in GitHub Desktop.
Asset loading speedup for foreman/katello
--- a/config.ru
+++ b/config.ru
@@ -4,5 +4,6 @@ require ::File.expand_path('../config/environment', __FILE__)
# apply a prefix to the application, if one is defined
# e.g. http://some.server.com/prefix where '/prefix' is defined by env variable
map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do
+ map("/assets"){ run Rails.application.assets }
run Foreman::Application
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment