Commit f2b5af78 by John Doe

working on smtp setting for aws

parent c32facc4
......@@ -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
......@@ -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
# ==================
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment