Closed GoogleCodeExporter closed 8 years ago
Greetings,
and thanks for the feedback. We decided to remove both the application: and
version: fields from app.yaml for a variety of reasons. The move from
appcfg.py to gcloud is part of bringing AppEngine closer to the rest of Google
Cloud, so complete backward compatibility isn't something we can always promise
with the tools.
----
application:
----
We removed this from app.yaml, as gcloud already provides 2 ways to specify the
project. You can specify the project using:
gcloud config set project PROJECT_ID
This will set the project globally. If you want to set the project on a
per-command basis, you can specify on the command line:
gcloud preview app deploy ./app.yaml --project="PROJECT_ID"
-----
version:
------
We don't want to encourage devs to set version inside of application code this
way. This made it way to easy to override an existing version, which leads to
a.) a lack of rollback ability and b.) potential downtime. We want to
encourage pushing a new version every time you deploy. If you still want to
specify an exact version, you can do this from the deploy command:
gcloud preview app deploy ./app.yaml --version="12345"
Hopefully this sheds some light on our decision making here. Hope this helps!
Original comment by beckw...@google.com
on 20 Oct 2015 at 6:41
Original comment by z...@google.com
on 20 Nov 2015 at 11:20
Original issue reported on code.google.com by
jluc...@google.com
on 30 Sep 2015 at 11:12