diff --git a/backend/.env-template b/backend/.env-template index 2e1cfa32..38281c92 100644 --- a/backend/.env-template +++ b/backend/.env-template @@ -1,10 +1,14 @@ AUTH_TOKEN=abc123 COVERALLS_REPO_TOKEN=abc123 -OAUTH_CLIENT_ID=abc123 -OAUTH_CLIENT_SECRET=abc123 -OAUTH_REDIRECT_URI=abc123 +PROD_OAUTH_CLIENT_ID=abc123 +PROD_OAUTH_CLIENT_SECRET=abc123 +PROD_OAUTH_REDIRECT_URI=abc123 + +DEV_OAUTH_CLIENT_ID=abc123 +DEV_OAUTH_CLIENT_SECRET=abc123 +DEV_OAUTH_REDIRECT_URI=abc123 GOOGLE_APPLICATION_CREDENTIALS=abc123 -MONGODB_PASSWORD=abc123 \ No newline at end of file +MONGODB_PASSWORD=abc123 diff --git a/backend/package.json b/backend/package.json index b7d72d71..ed8eab8f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -6,7 +6,7 @@ "gen-lang-map": "poetry run python src/data/github/language_map.py", "start": "poetry run uvicorn src.main:app --reload --port=8000", "set-reqs": "poetry lock && poetry export -f requirements.txt --output requirements.txt --without-hashes", - "create-env": "printenv > .env", + "create-env": "printenv && printenv > .env", "test": "poetry run coverage run --source=src -m unittest -v && poetry run coverage report", "isort": "poetry run isort . --src-path=./src --multi-line=3 --trailing-comma --line-length=88 --combine-as --ensure-newline-before-comments" } diff --git a/backend/src/constants.py b/backend/src/constants.py index c9a2d94e..cc8b9e6d 100644 --- a/backend/src/constants.py +++ b/backend/src/constants.py @@ -38,6 +38,10 @@ # redirect uri for App OAUTH_REDIRECT_URI = os.getenv(f"{prefix}_OAUTH_REDIRECT_URI", "") +print("prefix", prefix) +print("OAUTH_CLIENT_ID", OAUTH_CLIENT_ID) +print("OAUTH_CLIENT_SECRET", OAUTH_CLIENT_SECRET) +print("OAUTH_REDIRECT_URI", OAUTH_REDIRECT_URI) # MONGODB MONGODB_PASSWORD = os.getenv("MONGODB_PASSWORD", "")