about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-12 21:51:02 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-12 21:51:02 -0400
commit9ad3bca2ea475b709c8311ab25194e4578c1a0d9 (patch)
treeb60fa4048784bb36853d461fc6df14579a241534 /config
parent2022e18daab968ad49af9b3e59969ef1ed110436 (diff)
downloadthoughts-9ad3bca2ea475b709c8311ab25194e4578c1a0d9.tar.gz
thoughts-9ad3bca2ea475b709c8311ab25194e4578c1a0d9.tar.bz2
thoughts-9ad3bca2ea475b709c8311ab25194e4578c1a0d9.zip
Webmaster gets an email when a comment is posted
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb2
-rw-r--r--config/environments/development.rb1
-rw-r--r--config/environments/production.rb4
-rw-r--r--config/mail.yml8
4 files changed, 13 insertions, 2 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index cbac23c..05b137d 100644 --- a/config/deploy.rb +++ b/config/deploy.rb
@@ -21,7 +21,7 @@ set :deploy_to, "/srv/www/thoughts"
21# set :pty, true 21# set :pty, true
22 22
23# Default value for :linked_files is [] 23# Default value for :linked_files is []
24append :linked_files, "config/database.yml", "config/secrets.yml", "config/lingo.yml", "config/akismet.yml" 24append :linked_files, "config/database.yml", "config/secrets.yml", "config/lingo.yml", "config/akismet.yml", "config/mail.yml"
25 25
26# Default value for linked_dirs is [] 26# Default value for linked_dirs is []
27append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads" 27append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads"
diff --git a/config/environments/development.rb b/config/environments/development.rb index 8500f45..e683ebb 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb
@@ -37,6 +37,7 @@ Rails.application.configure do
37 config.active_storage.service = :local 37 config.active_storage.service = :local
38 38
39 # Don't care if the mailer can't send. 39 # Don't care if the mailer can't send.
40 config.action_mailer.default_url_options = { host: 'localhost:3000' }
40 config.action_mailer.raise_delivery_errors = false 41 config.action_mailer.raise_delivery_errors = false
41 42
42 config.action_mailer.perform_caching = false 43 config.action_mailer.perform_caching = false
diff --git a/config/environments/production.rb b/config/environments/production.rb index 182b74e..e814a66 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb
@@ -66,7 +66,9 @@ Rails.application.configure do
66 # Set this to true and configure the email server for immediate delivery to raise delivery errors. 66 # Set this to true and configure the email server for immediate delivery to raise delivery errors.
67 # config.action_mailer.raise_delivery_errors = false 67 # config.action_mailer.raise_delivery_errors = false
68 68
69 config.action_mailer.default_url_options = { host: 'feffernoo.se' } 69 config.action_mailer.default_url_options = { host: 'www.fourisland.com' }
70 config.action_mailer.delivery_method = :smtp
71 config.action_mailer.smtp_settings = Rails.application.config_for(:mail)[:smtp_settings]
70 72
71 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to 73 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
72 # the I18n.default_locale when a translation cannot be found). 74 # the I18n.default_locale when a translation cannot be found).
diff --git a/config/mail.yml b/config/mail.yml new file mode 100644 index 0000000..3c88234 --- /dev/null +++ b/config/mail.yml
@@ -0,0 +1,8 @@
1production:
2 smtp_settings:
3 address: ""
4 port: 25
5 user_name: ""
6 password: ""
7 authentication: ""
8 openssl_verify_mode: ""