about summary refs log tree commit diff stats
path: root/config/environments/production.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 03d15d1..901cf23 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb
@@ -14,17 +14,12 @@ Rails.application.configure do
14 config.consider_all_requests_local = false 14 config.consider_all_requests_local = false
15 config.action_controller.perform_caching = true 15 config.action_controller.perform_caching = true
16 16
17 # Attempt to read encrypted secrets from `config/secrets.yml.enc`.
18 # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
19 # `config/secrets.yml.key`.
20 config.read_encrypted_secrets = true
21
22 # Disable serving static files from the `/public` folder by default since 17 # Disable serving static files from the `/public` folder by default since
23 # Apache or NGINX already handles this. 18 # Apache or NGINX already handles this.
24 config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? 19 config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
25 20
26 # Compress JavaScripts and CSS. 21 # Compress JavaScripts and CSS.
27 config.assets.js_compressor = :uglifier 22 config.assets.js_compressor = :terser
28 # config.assets.css_compressor = :sass 23 # config.assets.css_compressor = :sass
29 24
30 # Do not fallback to assets pipeline if a precompiled asset is missed. 25 # Do not fallback to assets pipeline if a precompiled asset is missed.
@@ -66,7 +61,9 @@ Rails.application.configure do
66 # Set this to true and configure the email server for immediate delivery to raise delivery errors. 61 # Set this to true and configure the email server for immediate delivery to raise delivery errors.
67 # config.action_mailer.raise_delivery_errors = false 62 # config.action_mailer.raise_delivery_errors = false
68 63
69 config.action_mailer.default_url_options = { host: 'feffernoo.se' } 64 config.action_mailer.default_url_options = { host: 'www.fourisland.com' }
65 config.action_mailer.delivery_method = :smtp
66 config.action_mailer.smtp_settings = Rails.application.config_for(:mail)[:smtp_settings]
70 67
71 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to 68 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
72 # the I18n.default_locale when a translation cannot be found). 69 # the I18n.default_locale when a translation cannot be found).
@@ -90,4 +87,7 @@ Rails.application.configure do
90 87
91 # Do not dump schema after migrations. 88 # Do not dump schema after migrations.
92 config.active_record.dump_schema_after_migration = false 89 config.active_record.dump_schema_after_migration = false
90
91 # Store uploaded files on the local file system (see config/storage.yml for options).
92 config.active_storage.service = :local
93end 93end