3

I have a friend's website hosted on Google App Engine and he wants a some changes to be done. He wants to download the assets from there and build it from scratch into a different host provider. Thing is, when I enter in the Google App Engine Dashboard I find it so hard to export/download anything. All looks so messy. I can't even find the index.html and css files. Any answers would be really appreciated. Thanks.

appostolis
  • 2,294
  • 2
  • 13
  • 15

1 Answers1

6

You can download an application's source code by running appcfg.py with the download_app action in the Python SDK command-line tool:

appcfg.py download_app -A <your_app_id> -V <your_app_version> <output-dir>

Only the developer who uploaded the code and the application owner(s) can download it. But you can be added as admin by the current account holder and then your credentials will work on the command line.

It's possible downloading of source-code has been permanently disabled. This action is irreversible. After you prohibit code download, there is no way to re-enable this feature.

See this page for more: Python Downloading source code

Instructions above for python version. For Java look here. Others, start here.

Paul Collingwood
  • 9,053
  • 3
  • 23
  • 36
  • @appostolis GAE is not regular hosting, don't think of it as easy as FTP. – user7180 Sep 03 '13 at 09:53
  • alright, i have downloaded the SDK for Python and I'll go with the documentation. Thanks for the links ) – appostolis Sep 03 '13 at 15:25
  • Well, I think it's not that simple. I found out that my app uses High Replication datastore which according to this https://developers.google.com/appengine/docs/python/tools/uploadingdata#Python_Downloading_and_uploading_all_data I can't download the data I want. Am I missing something here? :D – appostolis Sep 03 '13 at 15:59
  • I think it'll be ok anyway. I read that as saying that the downloaded data might not include recently saved entities, rather the it not being possible at all. Tried it? Or you could write a simple modification to the code itself to read out the data in some way from the datastore in a usable format, depends how much there is really for how you'd do that. see this question: http://stackoverflow.com/questions/11209091/how-can-i-export-data-from-google-app-engine-high-replication-datastore and suggest you disable writes in the admin panel in any case before an export attempt. – Paul Collingwood Sep 03 '13 at 18:35
  • Sorry for the noobish questions, but, when I click the SDK Console in the GoogleAppEngineLauncher I get the localhost server like: http://localhost:8000/instances. So, there, I have no clue what I am doing. I wanted to run this: appcfg.py download_app -A -V . – appostolis Sep 04 '13 at 10:15
  • 1
    It's a command line tool, not available (AFAIK) from the GUI you seem to be talking about. So drop into the command line, find where your appcfg.py lives and run it from there instead. – Paul Collingwood Sep 04 '13 at 15:58