Skip to content

Commit 5e720c2

Browse files
committedSep 11, 2014
Config override for dev email recipient
1 parent c39891c commit 5e720c2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎.env.sample

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ SMTP_USER_NAME=dev-smtp-user-name
1111
SMTP_PASSWORD=dev-smtp-password
1212
SMTP_DOMAIN=mydomain.com
1313
SMTP_FROM_ADDRESS=citygram@example.com
14+
DEV_EMAIL_RECIPIENT=thedeveloper@example.com

‎lib/sinatra/assets_extension.rb

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def self.registered(app)
4141
app.configure :development do
4242
require 'sprockets/cache/file_store'
4343
assets.cache = Sprockets::Cache::FileStore.new('./tmp')
44+
45+
Pony.override_options = { :to => ENV['DEV_EMAIL_RECIPIENT'] }
4446
end
4547
end
4648
end

0 commit comments

Comments
 (0)
Please sign in to comment.