Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Set up mailgun
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkozal committed Dec 20, 2016
1 parent d084713 commit 910cc1a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ end
group :production do
gem 'redis'
gem 'sidekiq'
gem 'mailgun_rails'
end
18 changes: 18 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ GEM
addressable
database_rewinder (0.6.5)
debug_inspector (0.0.2)
domain_name (0.5.20161129)
unf (>= 0.0.5, < 1.0.0)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
Expand Down Expand Up @@ -117,6 +119,8 @@ GEM
multi_json (~> 1.8)
hashids (1.0.2)
htmlentities (4.3.4)
http-cookie (1.0.3)
domain_name (~> 0.5)
http_parser.rb (0.6.0)
i18n (0.7.0)
jbuilder (2.6.0)
Expand All @@ -126,6 +130,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.0.2)
launchy (2.4.3)
addressable (~> 2.3)
listen (3.0.8)
Expand All @@ -136,6 +141,10 @@ GEM
lumberjack (1.0.10)
mail (2.6.4)
mime-types (>= 1.16, < 4)
mailgun_rails (0.8.0)
actionmailer (>= 3.2.13)
json (>= 1.7.7)
rest-client (>= 1.6.7)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
Expand All @@ -144,6 +153,7 @@ GEM
minitest (5.9.1)
multi_json (1.12.1)
nenv (0.3.0)
netrc (0.11.0)
nio4r (1.2.1)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
Expand Down Expand Up @@ -205,6 +215,10 @@ GEM
ffi (>= 0.5.0)
rb-readline (0.5.3)
redis (3.3.2)
rest-client (2.0.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rubyzip (1.2.0)
sass (3.4.22)
sass-rails (5.0.6)
Expand Down Expand Up @@ -246,6 +260,9 @@ GEM
thread_safe (~> 0.1)
uglifier (3.0.2)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.2)
web-console (3.3.1)
actionview (>= 5.0)
activemodel (>= 5.0)
Expand Down Expand Up @@ -281,6 +298,7 @@ DEPENDENCIES
jquery-rails
launchy
listen (~> 3.0.5)
mailgun_rails
paranoia (~> 2.2)
pg (~> 0.18)
premailer-rails
Expand Down
6 changes: 6 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
config.action_mailer.default_url_options = { host: 'https://jottings.co' }
config.action_mailer.asset_host = 'https://jottings.co'

config.action_mailer.delivery_method = :mailgun
config.action_mailer.mailgun_settings = {
api_key: Rails.application.secrets.mailgun_key,
domain: Rails.application.secrets.mailgun_domain
}

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true
Expand Down
2 changes: 2 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ production:
hashids_salt: <%= ENV["HASHIDS_SALT"] %>
sharedb_url: <%= ENV["SHAREDB_URL"] %>
sharedb_output: <%= ENV["SHAREDB_OUTPUT"] %>
mailgun_key: <%= ENV["MAILGUN_KEY"] %>
mailgun_domain: <%= ENV["MAILGUN_DOMAIN"] %>

0 comments on commit 910cc1a

Please sign in to comment.