Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2b5af78
authored
Oct 11, 2017
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on smtp setting for aws
parent
c32facc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
18 deletions
config/database.yml
config/deploy/aws.rb
config/environments/aws.rb
config/database.yml
View file @
f2b5af78
...
...
@@ -30,14 +30,5 @@ production:
<<
:
*default
database
:
db/production.sqlite3
aws
:
adapter
:
postgresql
database
:
<%= ENV['RDS_DATABASE'] %>
host
:
<%= ENV['RDS_HOST'] %>
pool
:
5
encoding
:
unicode
username
:
<%= ENV['RDS_USERNAME'] %>
password
:
<%= ENV['RDS_PASSWORD'] %>
cucumber
:
<<
:
*test
config/deploy/aws.rb
View file @
f2b5af78
...
...
@@ -8,6 +8,7 @@ server "portal.wattsworth.net", user: "rails", roles: %w{app db web}, port: 22
# server "db.example.com", user: "deploy", roles: %w{db}
set
:deploy_to
,
"/opt/api"
set
:bundle_without
,
[
:development
,
:test
,
:local
]
append
:linked_files
,
"config/database.yml"
,
"configs/initializers/smtp.rb"
# role-based syntax
# ==================
...
...
config/environments/aws.rb
View file @
f2b5af78
...
...
@@ -58,15 +58,7 @@ Rails.application.configure do
config
.
action_mailer
.
perform_caching
=
false
config
.
action_mailer
.
default_url_options
=
{
:host
=>
'beta.wattsworth.net'
}
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
smtp_settings
=
{
:address
=>
"mail.wattsworth.net"
,
:port
=>
25
,
:domain
=>
"wattsworth.net"
,
:user_name
=>
ENV
[
'SMTP_USERNAME'
],
:password
=>
ENV
[
'SMTP_PASSWORD'
],
:authentication
=>
"login"
,
:enable_starttls_auto
=>
true
}
# Ignore bad email addresses and do not raise email delivery errors.
...
...
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