I'm trying to deploy an app engine Managed VM python/flask application using the gcloud command.
When developing locally I can pass environment variables to my flask server. I do this so that I can read a config file per environment. For example:
gunicorn -b :8080 --env CONFIG_FILE=config_dev.py main:app
Now, i'd like to deploy my application and use config_production.py as my config file. It seems I'd need to pass the environment variable CONFIG_FILE=config_dev.py to gcloud preview app deploy to set it. I checked the help pages but didnt see a way to set this.
Previously when I was developing on app engine sandbox I could do:
appcfg.py -E ENVIRONMENT:dev update app.yaml
Is there an equivalent argument for gcloud?