Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created March 22, 2016 10:33
Show Gist options
  • Save Epigene/6a2b957285584de0f1c6 to your computer and use it in GitHub Desktop.
Save Epigene/6a2b957285584de0f1c6 to your computer and use it in GitHub Desktop.
Dokku v0.4.x app staging environment file
Rails.application.configure do
config.action_controller.asset_host = "https://staging.yourdomain.com/"
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = true
config.serve_static_files = false
config.assets.js_compressor = :uglifier
config.assets.compile = true
config.assets.digest = true
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.raise_runtime_errors = true
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
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment