Last active
August 29, 2015 13:57
-
-
Save jlsherrill/9793345 to your computer and use it in GitHub Desktop.
Asset loading speedup for foreman/katello
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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