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.rb52
1 files changed, 25 insertions, 27 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 68ceccd..fced949 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,35 +1,33 @@
1# Settings specified here will take precedence over those in config/environment.rb 1require "active_support/core_ext/integer/time"
2 2
3# The production environment is meant for finished, "live" apps. 3Rails.application.configure do
4# Code is not reloaded between requests 4 config.enable_reloading = false
5config.cache_classes = true 5 config.eager_load = true
6 config.assume_ssl = true
6 7
7# Full error reports are disabled and caching is turned on 8 config.consider_all_requests_local = false
8config.action_controller.consider_all_requests_local = false 9 config.action_controller.perform_caching = true
9config.action_controller.perform_caching = true
10 10
11# See everything in the log (default is :info) 11 config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
12# config.log_level = :debug
13 12
14# Use a different logger for distributed setups 13 config.log_tags = [ :request_id ]
15# config.logger = SyslogLogger.new 14 config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
15 config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
16 16
17# Use a different cache store in production 17 config.active_support.report_deprecations = false
18# config.cache_store = :mem_cache_store
19 18
20# Enable serving of images, stylesheets, and javascripts from an asset server 19 config.action_mailer.delivery_method = :sendmail
21# config.action_controller.asset_host = "http://assets.example.com" 20 config.action_mailer.sendmail_settings = {
21 location: '/usr/sbin/sendmail',
22 arguments: '-i -t'
23 }
24 config.action_mailer.perform_deliveries = true
25 config.action_mailer.raise_delivery_errors = true
26 config.action_mailer.default_url_options = { host: "ccc.de" }
22 27
23# Disable delivery errors, bad email addresses will be ignored 28 config.i18n.fallbacks = true
24# config.action_mailer.raise_delivery_errors = false
25 29
26# Enable threaded mode 30 config.assets.css_compressor = nil
27# config.threadsafe! 31 config.active_record.dump_schema_after_migration = false
28 32 config.active_record.attributes_for_inspect = [ :id ]
29ActionMailer::Base.delivery_method = :sendmail 33end
30ActionMailer::Base.sendmail_settings = {
31 :location => '/usr/sbin/sendmail',
32 :arguments => '-i -t'
33}
34ActionMailer::Base.perform_deliveries = true
35ActionMailer::Base.raise_delivery_errors = true \ No newline at end of file