Hello PK,

You are correct, there is an inconsistency in how the local development 
server and the gcloud command line interface handle versions and services. 
If you want to you can create a feature request 
<https://b.corp.google.com/issues/new?component=187272&template=1010823> for 
either component's behavior and functionality to be changed.

As an potential additional workaround, depending on how much of the Modules 
API you are using, could you use the "--env_var ENV_VARIABLES" command line 
option for dev_appserver.py and pass the version information you need to 
your program that way when testing?

On Sunday, June 25, 2017 at 8:44:34 PM UTC-4, PK wrote:
>
> I am transitioning from the SDK/appcfg.py to gcloud and hit the following 
> issue that seems to need clarification. In the SDK, one specifies the 
> application and the version in the configuration yaml file. Both appcfg and 
> dev_appserver.py pick it from there and everything works as expected.
>
> "gcloud deploy" and friends do not want application: and version: entries 
> in the yaml file. No problem there, I now pass them in the 'gcloud deploy' 
> command line. dev_appserver.py has a -A option and I also pass the 
> application id there. However, there seems to be no way to pass the 
> module/service version number to dev_appserver.py.
>
> Am I missing something or this is still WIP? As a workaround I now 
> generate two sets of yaml files, one with version for dev_appserver.py and 
> one without for 'gcloud deploy' but I would expect to be a better way.
>
> Thanks,
> PK
> www.gae123.com
>
> PS My code uses the modules module version information APIs; if I do not 
> pass a version in the development environment it returns 'None' which make 
> things fail.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/650553bd-47cf-431a-b058-011b6db6f3fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... PK
    • [google-appe... 'Yannick (Cloud Platform Support)' via Google App Engine
      • Re: [goo... PK
        • Re: ... 'Yannick (Cloud Platform Support)' via Google App Engine
          • ... 'David Nicholson' via Google App Engine

Reply via email to