Skip to content

Commit

Permalink
ready for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikKapur committed Feb 3, 2019
1 parent 813f135 commit 5df130f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def ok_code():
'client_secret': app.config['CLIENT_SECRET'],
'client_id': app.config['CLIENT_ID'],
'grant_type': 'authorization_code',
'redirect_uri': 'https://ui-dot-hermes-199405.appspot.com/authorized'
'redirect_uri': '{0}/authorized'.format(os.environ.get('HERMES_UI_URL'))
})
if r.ok:
return json_dump(r.json())
Expand All @@ -164,7 +164,7 @@ def ok_refresh():
'client_secret': app.config['CLIENT_SECRET'],
'client_id': app.config['CLIENT_ID'],
'grant_type': 'refresh_token',
'redirect_uri': 'https://ui-dot-hermes-199405.appspot.com/authorized'
'redirect_uri': '{0}/authorized'.format(os.environ.get('HERMES_UI_URL'))
})
if r.ok:
return json_dump(r.json())
Expand Down
2 changes: 1 addition & 1 deletion deploy/public_env
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export TESTING_OK_ID=lejRej
export TRANSCRIPTION_MODE=api
export OAUTHLIB_INSECURE_TRANSPORT=1
export FLASK_DEBUG=1
export HERMES_UI_URL=http://localhost:3000
export HERMES_UI_URL=https://ui-dot-hermes-199405.appspot.com

0 comments on commit 5df130f

Please sign in to comment.