gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

--version in preview app deploy is broken #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The --version (when using preview app deploy) switch doesn't override the .yaml 
version, if lets say your yaml is on vAlpha and you set the --version to be 
vBeta you get an error saying the vAlpha != vBeta.

In the old appcfg.py the --version switch would override whatever was in the 
yaml which was very handy for deployment senarious (and making sure that no one 
works with the live version)

Original issue reported on code.google.com by erlichmen on 11 Sep 2014 at 12:55

GoogleCodeExporter commented 9 years ago
This is intentional: we're trying to encourage people to move deployment 
information out of the .yaml file, since there is also non-deployment 
information in there (like routing), and mixing the two is a recipe for 
unintended deployments.

Original comment by jasm...@google.com on 11 Sep 2014 at 2:35

GoogleCodeExporter commented 9 years ago
I understand, put a "version is deprecated use the --version switch instead" 
message that would clear things a lot.

Original comment by erlichmen on 11 Sep 2014 at 2:38

GoogleCodeExporter commented 9 years ago
Wait a second, if you remove version from yaml, how does git push-to-deploy 
would work? how would it know to which version to deploy the module?

Original comment by erlichmen on 11 Sep 2014 at 6:24

GoogleCodeExporter commented 9 years ago
For git p2d, yes you need it in the yaml. The story isn't complete yet, and 
there will be some changes to how the p2d service works. Nothing I'm allowed to 
talk about in public yet :) If you ask around in the GDE groups I'm sure 
someone can fill you in.

Original comment by jasm...@google.com on 11 Sep 2014 at 6:29