summaryrefslogtreecommitdiff
path: root/config/environments/production.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb42
1 files changed, 17 insertions, 25 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 82b918a..f8d078e 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,34 +1,20 @@
1# Settings specified here will take precedence over those in config/environment.rb 1require "active_support/core_ext/integer/time"
2 2
3Cccms::Application.configure do 3Rails.application.configure do
4 # The production environment is meant for finished, "live" apps. 4 config.enable_reloading = false
5 # Code is not reloaded between requests
6 config.cache_classes = true
7
8 # Full error reports are disabled and caching is turned on
9 config.action_controller.consider_all_requests_local = false
10 config.action_controller.perform_caching = true
11
12 # See everything in the log (default is :info)
13 config.log_level = :info
14
15 config.active_support.deprecation = :notify
16 config.eager_load = true 5 config.eager_load = true
6 config.assume_ssl = true
17 7
18 # Use a different logger for distributed setups 8 config.consider_all_requests_local = false
19 # config.logger = SyslogLogger.new 9 config.action_controller.perform_caching = true
20 10
21 # Use a different cache store in production 11 config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
22 # config.cache_store = :mem_cache_store
23 12
24 # Enable serving of images, stylesheets, and javascripts from an asset server 13 config.log_tags = [ :request_id ]
25 # config.action_controller.asset_host = "http://assets.example.com" 14 config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
15 config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
26 16
27 # Disable delivery errors, bad email addresses will be ignored 17 config.active_support.report_deprecations = false
28 # config.action_mailer.raise_delivery_errors = false
29
30 # Enable threaded mode
31 # config.threadsafe!
32 18
33 config.action_mailer.delivery_method = :sendmail 19 config.action_mailer.delivery_method = :sendmail
34 config.action_mailer.sendmail_settings = { 20 config.action_mailer.sendmail_settings = {
@@ -37,4 +23,10 @@ Cccms::Application.configure do
37 } 23 }
38 config.action_mailer.perform_deliveries = true 24 config.action_mailer.perform_deliveries = true
39 config.action_mailer.raise_delivery_errors = true 25 config.action_mailer.raise_delivery_errors = true
26 config.action_mailer.default_url_options = { host: "ccc.de" }
27
28 config.i18n.fallbacks = true
29
30 config.active_record.dump_schema_after_migration = false
31 config.active_record.attributes_for_inspect = [ :id ]
40end 32end