Skip to content

Instantly share code, notes, and snippets.

@lordofthedanse
Created April 28, 2020 07:17
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 lordofthedanse/cfd217f225d68254d8221e468d6814e6 to your computer and use it in GitHub Desktop.
Save lordofthedanse/cfd217f225d68254d8221e468d6814e6 to your computer and use it in GitHub Desktop.
if ENV['PROFILE']
config.cache_classes = true
config.eager_load = true
config.logger = ActiveSupport::Logger.new(STDOUT)
config.log_level = :info
config.public_file_server.enabled = true
config.public_file_server.headers = {
'Cache-Control' => 'max-age=315360000, public',
'Expires' => 'Thu, 31 Dec 2037 23:55:55 GMT'
}
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :sass
config.assets.compile = false
config.assets.digest = true
config.assets.debug = false
config.active_record.migration_error = false
config.active_record.verbose_query_logs = false
config.action_view.cache_template_loading = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment