Permalink
Browse files

Load config from local file if it exists

  • Loading branch information...
1 parent e4ebfff commit 1b9bfe17384b995865f899d7ba1f465261b2879a @jystewart jystewart committed Mar 5, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 send_email.rb
View
3 send_email.rb 100644 → 100755
@@ -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'

0 comments on commit 1b9bfe1

Please sign in to comment.