diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 9a835b8f..50ff7b40 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -25,7 +25,7 @@ steps: - '--region=$_DEPLOY_REGION' - '--min-instances=1' - '--quiet' - - '--set-env-vars=CLOUD_RUN=True,SERVICE_URL=https://$_SERVICE_NAME-$_DEPLOY_REGION.a.run.app' + - '--set-env-vars=CLOUD_RUN=True,SERVICE_URL=https://$_SERVICE_NAME-$_DEPLOY_REGION.a.run.app,FLASK_DEBUG=$_FLASK_DEBUG' id: Deploy entrypoint: gcloud images: @@ -38,6 +38,7 @@ substitutions: _LABELS: gcb-trigger-id=44d26102-694b-457c-afaf-b086e4d866be _TRIGGER_ID: 44d26102-694b-457c-afaf-b086e4d866be _DEPLOY_REGION: us-central1 + _FLASK_DEBUG: development _GCR_HOSTNAME: us.gcr.io _PLATFORM: managed tags: diff --git a/run.py b/run.py index 64eeee7d..6ad550a2 100644 --- a/run.py +++ b/run.py @@ -7,5 +7,4 @@ port = int(sys.argv[1]) if len(sys.argv) > 1 else 5000 os.environ["FLASK_APP"] = "src" - os.environ["FLASK_DEBUG"] = "development" src.create_app().run(port=port)