Skip to content

Instantly share code, notes, and snippets.

@Epigene
Last active August 29, 2015 14:14
Show Gist options
  • Save Epigene/b94bc89eb397730503b8 to your computer and use it in GitHub Desktop.
Save Epigene/b94bc89eb397730503b8 to your computer and use it in GitHub Desktop.
Dokku rails app staging environment setup
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
config.eager_load = false
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false # MAKE THIS FALSE FOR DOKKU
config.serve_static_assets = false
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = true # MAKE THIS TRUE FOR DOKKU
# Generate digests for assets URLs.
config.assets.digest = true
config.log_level = :info
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
# Do not dump schema after migrations.
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