App Engine: different app.yaml files based on environment

后端 未结 3 919
我寻月下人不归
我寻月下人不归 2021-02-20 08:48

I am currently migrating an application to Google App Engine that relies on environment variables for various external connections. It looks like the app.yaml file is where I s

3条回答
  •  孤街浪徒
    2021-02-20 09:21

    I just came across this issue for the same reason. I ended up creating aliases for each dev, and prod:

    alias dev-deploy='cat dev.yaml > app.yaml; gcloud app deploy dev.yaml; rm app.yaml'
    alias prod-deploy='cat prod.yaml > app.yaml; gcloud app deploy; rm app.yaml'
    

提交回复
热议问题