Skip to content

Commit 301ee89

Browse files
committed
test the solution on fix/gee-auth branch
1 parent d54f8f5 commit 301ee89

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
API_BASE_URL: "http://127.0.0.1:8000"
6464
GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS }}
6565
GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL }}
66+
ENVIRONMENT: "PRODUCTION"
6667
run: |
6768
python -m pip install --upgrade pip
6869
pip install -r requirements-dev.txt
@@ -85,7 +86,8 @@ jobs:
8586
--min-instances=1 \
8687
--max-instances=5 \
8788
--set-env-vars "GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS=${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS }}" \
88-
--set-env-vars "GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL=${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL }}"
89+
--set-env-vars "GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL=${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL }}" \
90+
--set-env-vars "ENVIRONMENT=PRODUCTION"
8991
9092
9193
# Step 9: Build and Deploy the frontend

backend/src/weather/router.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66

77
@router.get("/index", response_model=schemas.WeatherDataResponse)
88
async def get_weather_data(request: schemas.WeatherDataRequest = Depends()):
9-
return await service.fetch_weather_data(request)
10-
11-
@router.get("/test-env")
12-
async def testenv():
13-
return {"a": os.getenv("GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS"), "b": os.getenv("GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL")}
9+
return await service.fetch_weather_data(request)

0 commit comments

Comments
 (0)