Skip to content

Commit cfe74b4

Browse files
author
Dennis Schwartz
committed
Fix production playbook name
1 parent 29b6358 commit cfe74b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
-e DB_PASSWORD=$DB_PASSWORD
4040
-e GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET
4141
-e GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
42-
philm/ansible_playbook dev-production.yml
42+
philm/ansible_playbook production-deploy.yml
4343
--private-key=~/.ssh/id_rsa -u ubuntu -i production_hosts
4444
notifications:
4545
email: true

biojs/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
SECRET_KEY = '$&&+$xz)50khd6q+aq&95r1$2urmmdv37=-*lu3v-wwh46829t'
2424

2525
try:
26-
from config import *
26+
from config import GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
2727
GITHUB_CLIENT_ID = GITHUB_CLIENT_ID
2828
GITHUB_CLIENT_SECRET = GITHUB_CLIENT_SECRET
2929
except:
@@ -33,6 +33,7 @@
3333
# SECURITY WARNING: don't run with debug turned on in production!
3434
try:
3535
from config import DEBUG
36+
DEBUG = DEBUG
3637
except:
3738
DEBUG = False
3839

@@ -89,7 +90,7 @@
8990
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
9091

9192
try:
92-
from config import *
93+
from config import DATABASE_NAME, DATABASE_USERNAME, DATABASE_PASSWORD
9394
DATABASES = {
9495
'default': {
9596
'ENGINE': 'django.db.backends.postgresql_psycopg2',

main/management/commands/updatecomponents.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ def handle(self, *args, **options):
176176
except urllib2.HTTPError as e:
177177
print('Error getting github data!')
178178
print(e)
179-
print GITHUB_CLIENT_ID
180179
continue
181180
except Exception as e:
182181
print('Unexpected error accessing Github!')

0 commit comments

Comments
 (0)