summaryrefslogtreecommitdiff
path: root/config/environments
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/environments/production.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index b58fee1..f12eac5 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -67,6 +67,8 @@ Rails.application.configure do
# Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true
+ config.action_mailer.default_url_options = {host: "localhost", port: 3000}
+
# Bullet config.
config.after_initialize do
Bullet.enable = true
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 1467225..4cb1f3d 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -75,6 +75,8 @@ Rails.application.configure do
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
+ config.action_mailer.default_url_options = {host: "dmn.aikuro.net", port: 3000}
+
# Enable DNS rebinding protection and other `Host` header attacks.
# config.hosts = [
# "example.com", # Allow requests from example.com