Skip to content

Commit

Permalink
Environment config allows for in_production vars (config/secrets.yml)
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaray committed Dec 24, 2017
1 parent bb856ea commit e54fb6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def self.reload!
# Don't specify: Heroku has DATABASE_URL environment variable
end

configure do
# For all runnable environments (not in_production)
configure :development, :test, :app_test, :production do
require 'sequel'
DB = Sequel.connect(ENV['DATABASE_URL'])

Expand Down

0 comments on commit e54fb6f

Please sign in to comment.