Gae project defining more simple way

32 views
Skip to first unread message

Jukka Hautakorpi

unread,
Jul 2, 2018, 10:42:21 AM7/2/18
to Google App Engine
Hello

I have few project that i update every now and then. Php and GAE.
Used to use the old cmd tools (appcfg.py) but had to update to gcloud

I made a mistake and run command 

gcloud app deploy project222/app.yaml --version=1 --promote

without reading closely enough and it updated this project over another one! huuuge mistake

How can i make it more simple when dealing with multiple projects withouth always having to first set project with 
gcloud config set project projectname 

?

Thanks


Steren Giannini

unread,
Jul 2, 2018, 11:31:52 AM7/2/18
to google-a...@googlegroups.com
Hi,

When deploying, we recommend to always create a new version instead of overriding an existing one. This is achieved by not passing the --version flag when running gcloud app deploy.

When doing so, you can then safely rollback to the previously serving version if something goes wrong with the new one.

Regarding gcloud, we are evaluating better solutions to give the project context. In the meantime, you can use the --project flag to endure you are deploying to the right project.

Steren
Product Manager
Google Cloud Platform

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/26689fe5-ed15-434e-8513-69449948286d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jukka Hautakorpi

unread,
Jul 2, 2018, 3:36:48 PM7/2/18
to Google App Engine
Thanks! This will help me not to make mistakes!
Reply all
Reply to author
Forward
0 new messages