Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
open-source
aoz-003
Commits
853db650
Verified
Commit
853db650
authored
Dec 02, 2020
by
Kaspar Vollenweider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move email initializer to env configs because thats where it belongs
parent
e399dec7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
config/environments/production.rb
config/environments/production.rb
+6
-0
config/initializers/email.rb
config/initializers/email.rb
+0
-10
No files found.
config/environments/production.rb
View file @
853db650
...
...
@@ -82,7 +82,13 @@ Rails.application.configure do
authentication: :plain
}
config
.
action_mailer
.
delivery_method
=
:smtp
else
config
.
action_mailer
.
delivery_method
=
:sendmail
end
config
.
action_mailer
.
default_url_options
=
{
host:
ENV
[
'DEVISE_EMAIL_DOMAIN'
]
||
'staging.aoz-freiwillige.ch'
,
protocol:
'https'
}
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
...
...
config/initializers/email.rb
deleted
100644 → 0
View file @
e399dec7
if
Rails
.
env
.
production?
ActionMailer
::
Base
.
default_url_options
=
{
host:
ENV
[
'DEVISE_EMAIL_DOMAIN'
]
||
'staging.aoz-freiwillige.ch'
,
protocol:
'https'
}
else
ActionMailer
::
Base
.
default_url_options
=
{
host:
'localhost:3000'
}
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment