Moved mandrill config to figaro

This commit is contained in:
Skud
2014-04-29 13:07:23 +10:00
parent bc36713449
commit bf6bb7f620
5 changed files with 17 additions and 14 deletions

View File

@@ -18,6 +18,17 @@
# name that appears on the site, eg. in page titles
GROWSTUFF_SITE_NAME: Growstuff (dev)
# Mandrill is used to send transactional email (eg. signup
# confirmations). If using Heroku connect to Mandrill via Heroku addons
# list then go to tools menu (upper right) and choose "SMTP and API
# Credentials"
GROWSTUFF_MANDRILL_USERNAME: "dummy"
GROWSTUFF_MANDRILL_APIKEY: "dummy"
# Paypal is used for payments, obviously.
GROWSTUFF_PAYPAL_USERNAME: "dummy"
GROWSTUFF_PAYPAL_PASSWORD: "dummy"
GROWSTUFF_PAYPAL_SIGNATURE: "dummy"
##############################################################################
# Other environments (you can override the above for staging,

View File

@@ -46,11 +46,10 @@ Growstuff::Application.configure do
config.action_mailer.smtp_settings = {
:port => '587',
:address => 'smtp.mandrillapp.com',
:user_name => ENV['MANDRILL_USERNAME'],
:password => ENV['MANDRILL_APIKEY'],
:user_name => ENV['GROWSTUFF_MANDRILL_USERNAME'],
:password => ENV['GROWSTUFF_MANDRILL_APIKEY'],
:authentication => :login
}
config.action_mailer.delivery_method = :smtp
config.host = 'localhost:8080'
config.analytics_code = ''

View File

@@ -72,8 +72,8 @@ Growstuff::Application.configure do
config.action_mailer.smtp_settings = {
:port => '587',
:address => 'smtp.mandrillapp.com',
:user_name => ENV['MANDRILL_USERNAME'],
:password => ENV['MANDRILL_APIKEY'],
:user_name => ENV['GROWSTUFF_MANDRILL_USERNAME'],
:password => ENV['GROWSTUFF_MANDRILL_APIKEY'],
:domain => 'heroku.com',
:authentication => :plain
}

View File

@@ -72,8 +72,8 @@ Growstuff::Application.configure do
config.action_mailer.smtp_settings = {
:port => '587',
:address => 'smtp.mandrillapp.com',
:user_name => ENV['MANDRILL_USERNAME'],
:password => ENV['MANDRILL_APIKEY'],
:user_name => ENV['GROWSTUFF_MANDRILL_USERNAME'],
:password => ENV['GROWSTUFF_MANDRILL_APIKEY'],
:domain => 'heroku.com',
:authentication => :plain
}

View File

@@ -26,13 +26,6 @@
# don't need to for your dev machine though.)
export RAILS_SECRET_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Mandrill is used to send transactional email (eg. signup
# confirmations). If using Heroku connect to Mandrill via Heroku addons
# list then go to tools menu (upper right) and choose "SMTP and API
# Credentials"
export MANDRILL_USERNAME=""
export MANDRILL_APIKEY=""
# Used for connecting member accounts to Twitter
# Get Twitter key from https://dev.twitter.com/apps
export TWITTER_KEY=""