File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 66
77@router .get ("/index" , response_model = schemas .WeatherDataResponse )
88async 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 )
You can’t perform that action at this time.
0 commit comments