Skip to content

Commit

Permalink
fixes for Cloud Foundry env
Browse files Browse the repository at this point in the history
  • Loading branch information
data-henrik committed Apr 4, 2018
1 parent 312e897 commit 8a8097a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/ghstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
"client_secret": appIDInfo['credentials']['secret']
}
# See http://flask.pocoo.org/docs/0.12/config/
app.config.update({'SERVER_NAME': os.environ['CF_INSTANCE_ADDR'],
app.config.update({'SERVER_NAME': json.loads(os.environ['VCAP_APPLICATION'])['uris'][0],
'SECRET_KEY': 'my_secret_key',
'PREFERRED_URL_SCHEME': 'https'})
print os.environ['CF_INSTANCE_ADDR']

# we are local, so load info from a file
else:
Expand Down

0 comments on commit 8a8097a

Please sign in to comment.