From 5df130f7082c7737dcdf9fa24b05e435666db120 Mon Sep 17 00:00:00 2001 From: Kartik Kapur Date: Sun, 3 Feb 2019 02:50:07 -0800 Subject: [PATCH] ready for deployment --- app.py | 4 ++-- deploy/public_env | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 043b4e2..972d9f6 100644 --- a/app.py +++ b/app.py @@ -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()) @@ -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()) diff --git a/deploy/public_env b/deploy/public_env index ec130e3..0fd6d10 100755 --- a/deploy/public_env +++ b/deploy/public_env @@ -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