diff options
author | Matthew Draper <matthew@trebex.net> | 2017-05-31 04:29:38 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-31 04:29:38 +0930 |
commit | 763ef6d2fac116753797f7b763734f6243a7db55 (patch) | |
tree | efdf8d8f47e4a60f540dcb8068370254637b920f /railties/lib/rails/generators | |
parent | f495e0ff0bd00a2dd68cded0ae5d0dcf38e4ddfc (diff) | |
parent | 5830a69ed950d4d9231d1373ef595813819472a6 (diff) | |
download | rails-763ef6d2fac116753797f7b763734f6243a7db55.tar.gz rails-763ef6d2fac116753797f7b763734f6243a7db55.tar.bz2 rails-763ef6d2fac116753797f7b763734f6243a7db55.zip |
Merge pull request #29088 from greysteil/better-spacing-in-production-environment
Better spacing in environments/production.rb file
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt index 9c4a77fd1d..d44331a888 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt @@ -36,8 +36,8 @@ Rails.application.configure do config.assets.compile = false # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - <%- end -%> + <%- end -%> # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com' @@ -50,8 +50,8 @@ Rails.application.configure do # config.action_cable.mount_path = nil # config.action_cable.url = 'wss://example.com/cable' # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] - <%- end -%> + <%- end -%> # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true @@ -68,14 +68,15 @@ Rails.application.configure do # Use a real queuing backend for Active Job (and separate queues per environment) # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "<%= app_name %>_#{Rails.env}" + <%- unless options.skip_action_mailer? -%> config.action_mailer.perform_caching = false # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false - <%- end -%> + <%- end -%> # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true |