Download specific Module code?

94 views
Skip to first unread message

Paul Canning

unread,
Aug 4, 2015, 6:32:00 AM8/4/15
to Google App Engine
I know you can download your default module code using "appcfg.py download_app" and even a specific version of the default module.

Nut is it possible to download the code of a MODULE?

E.G I have the the default app, Website A. I thne have a module, which is an entirely different site, Website B.

The appcfg.py command will only let me download versions of Website A.

Here is the usage:

"Usage: appcfg.py [options] download_app -A app_id [ -V version ] <out-dir>"

See, no options for module.

So, how can I download specific module code?

Ryan (Cloud Platform Support)

unread,
Aug 4, 2015, 10:59:00 AM8/4/15
to Google App Engine
Salutations Paul,

When you download code for a version it downloads all the modules in that version. There is no need to specify a module.

Paul Canning

unread,
Aug 4, 2015, 11:07:20 AM8/4/15
to Google App Engine
I think you have misunderstood. The download_app command ONLY downloads the default app engine module for a project.

Example:

  • Project - top level, google Cloud Platform project
    • App Engine Apps
      • Default "Module" - Website A (worpdress site)
        • Version 1
        • Version 2
        • etc
      • 2nd "Module" - Website B (bespoke PHP site)
        • Version 1
        • Version 2
        • etc
Now, if I did "appcfg.py download_app -A adgen-web-2015" This will ONLY download Website A. I can specify a version of Website A, but it will only ever be Website A.

You CANNOT specify anyway to download Website B, left alone a version of it.


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/YOSxlbn-SbY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f75a69ff-7fc1-4aca-a636-254d649ee9d6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
---------------------------------
Paul Canning
[ software artist ]
---------------------------------
[draw&code]  
digital creative studio

---------------------------------

Paul Canning

unread,
Aug 4, 2015, 11:07:38 AM8/4/15
to Google App Engine
To add to this, here is the output is I try to target a Module name instead of a project name (appcfg.py download_app -A <module_name>"

04:05 PM Host: appengine.google.com
04:05 PM Fetching file list...
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'<module_name>').
--- end server output ---

Ryan (Cloud Platform Support)

unread,
Aug 4, 2015, 12:39:36 PM8/4/15
to Google App Engine
The error you are seeing means you do not have access to the code

For sanity sake I tested this:

Created a fresh app
Create 2 modules (modulea, moduleb)
Uploaded using appcfg.py update app.yaml modulea moduleb
Confirmed all pages worked
Downloaded using: appcfg.py download_app -A app-id-here .
All files for ALL modules are present.

What I think is happening with you is you are confusing App Engine modules and company decided modules. Do they have different app ids?


On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

Paul Canning

unread,
Aug 4, 2015, 12:45:36 PM8/4/15
to Google App Engine

What's the difference between App Engine Modules and "Company" modules?

My modules are uploaded separately, so Website A uses app.yaml and Website B uses app-b.yaml

They exist on app engine as separate modules, each with their own versions.

The appcfg command cannot grab anything other then Website A. And when it downloaded Website A, it only download the active (default) version.

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/YOSxlbn-SbY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.

Ryan (Cloud Platform Support)

unread,
Aug 4, 2015, 12:50:07 PM8/4/15
to Google App Engine
Can you send me the two yamls in a private message?


On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

Paul Canning

unread,
Aug 4, 2015, 12:50:11 PM8/4/15
to Google App Engine
Also, for "download_app" the -A option does not work (for me) unless I put the PROJECT name. I tried app (modules) names but it says the application doesnt exist. I have full permissions.

Do you have to "login" to "appcfg.py download_app" in any way to show you are authorized?

I tried "appcfg.py download_py -A default ." (default is the "app name" of Website A) and it failed.

Ryan (Cloud Platform Support)

unread,
Aug 12, 2015, 10:36:36 AM8/12/15
to Google App Engine
Working with Paul offline we came to the conclusion that using the gcloud tool to download the module is best option.


On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:
Reply all
Reply to author
Forward
0 new messages