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

Commit

Permalink
Load config from local file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jystewart committed Mar 5, 2013
1 parent e4ebfff commit 1b9bfe1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions send_email.rb 100644 → 100755
Expand Up @@ -3,6 +3,9 @@
require 'action_mailer'
require 'aws/ses'

heroku_env = File.expand_path('config.rb', File.dirname(__FILE__))
load(heroku_env) if File.exists?(heroku_env)

require_relative 'lib/analytics_interface'
require_relative 'lib/report_mailer'

Expand Down

0 comments on commit 1b9bfe1

Please sign in to comment.