Skip to content

Instantly share code, notes, and snippets.

@Epigene
Last active December 21, 2018 01:38
Show Gist options
  • Save Epigene/ea6a1bd070b657189fbe to your computer and use it in GitHub Desktop.
Save Epigene/ea6a1bd070b657189fbe to your computer and use it in GitHub Desktop.
Dokku v0.4.x app production environment file
Rails.application.configure do
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_files = false
config.assets.js_compressor = :uglifier
config.assets.compile = false
config.assets.digest = true
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
config.log_level = :debug
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
config.active_record.dump_schema_after_migration = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment