Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
2016 dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Jul 22, 2015
1 parent f4c1ec4 commit de432ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cookbooks/psf-pycon/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Configuration for us.pycon.org staging and production"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.39"
version "0.0.40"

depends "sudo"
depends "application_python"
Expand Down
4 changes: 2 additions & 2 deletions cookbooks/psf-pycon/recipes/app.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
secrets = data_bag_item("secrets", "pycon")
is_production = tagged?('production')
if is_production
db = data_bag_item("secrets", "postgres")["pycon2015"]
db = data_bag_item("secrets", "postgres")["pycon2016"]
app_name = "us.pycon.org"
sentry_dsn = secrets["sentry_dsn"]["production"]
else
db = data_bag_item("secrets", "postgres")["pycon2015-staging"]
db = data_bag_item("secrets", "postgres")["pycon2016-staging"]
app_name = "staging-pycon.python.org"
sentry_dsn = secrets["sentry_dsn"]["staging"]
end
Expand Down

0 comments on commit de432ca

Please sign in to comment.