Downloading source code from Google App Engine

101 views
Skip to first unread message

Renee Maier

unread,
Feb 17, 2010, 1:02:41 PM2/17/10
to Google App Engine
I was wondering if there is a way to download the source code from my
app engine project? My hard drive crashed on my Mac and I (stupidly)
did not have the source backed up.

Thanks!

Nick Johnson (Google)

unread,
Feb 17, 2010, 1:24:20 PM2/17/10
to google-a...@googlegroups.com
Hi Renee,

Sorry, we don't provide a way to download source code. This is partly a security consideration: Many people are in a situation where not all of the admins of an app should have access to the app's source.

I'd strongly recommend using a version control service like github or Google Code in future.

-Nick Johnson


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047

Ikai L (Google)

unread,
Feb 17, 2010, 1:25:25 PM2/17/10
to google-a...@googlegroups.com
No, there isn't. This question is asked more frequently than makes me comfortable. You should always use source control.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

Tim Hoffman

unread,
Feb 17, 2010, 5:38:23 PM2/17/10
to Google App Engine
Hi

It also occurs so frequently it suggests there is not a lot of reading
the documentation going on.
Maybe some big bold text at the beginning of getting started might
help ;-)

By the way I personally do not feel this feature should be implemented
by google.
People can already install some code to provide this facility
themselves.

Rgds

T

On Feb 18, 2:25 am, "Ikai L (Google)" <ika...@google.com> wrote:
> No, there isn't. This question is asked more frequently than makes me
> comfortable. You should always use source control.
>
>
>
> On Wed, Feb 17, 2010 at 10:02 AM, Renee Maier <maier.re...@gmail.com> wrote:
> > I was wondering if there is a way to download the source code from my
> > app engine project?  My hard drive crashed on my Mac and I (stupidly)
> > did not have the source backed up.
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>

Sümer Cip

unread,
Feb 17, 2010, 6:07:32 PM2/17/10
to google-a...@googlegroups.com
As a programmer I usually like everything Google does as a corporation, like thir ideas, like their projects especially the engineering quality of their software(good balancing of tradeoffs). But I personally don't understand Google on this subject. People just want to have a simple FTP like thing where we can download the code. I personally don't want a full blown VCS. And I also agree to the fact that this should be written in the documentation somewhere with bold. As a note about the appengine documentation, I just find the official documentation of AppEngine very immature. All of the important things I learn is coming from independent blogs and the Programming App Engine book. The official docs especially should give more information on simple but frequent patterns like efficient session management or pagination and should be imperative. If you look at the official documentation there are some content confusion on them like on 2 page it explains the overview of DataStore but there are 6 pages of documentation on sharded counters. More fundamental docs..

Sorry for the off-topic post.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Sumer Cip

Greg

unread,
Feb 17, 2010, 8:33:42 PM2/17/10
to Google App Engine
On Feb 18, 12:07 pm, Sümer Cip <sum...@gmail.com> wrote:
> People just want to have a simple FTP like thing where we can download the code.

No people don't! Consider the scenario where you have developed a nice
application and you want to sell it to different companies. As
Appengine is now, you can set up an appengine account for the company,
upload the application, and hand it over to them to administer and pay
for resource usage. You don't have to worry that they copy or mess
with your code.

So I'm dead against allowing admins to download the code in any shape
or form. Version control not only solves this problem, it solves so
many others that any developer who doesn't use it should be looking
for another job. And probably will be, after their first disk crash...

Sorry for ranting, but like Ikai, I'm dismayed how often this topic
comes up. If you're reading this and you don't have a version control
system, GET ONE NOW BEFORE YOU WRITE ANOTHER LINE OF CODE. You will
thank me a thousand times over your career.

Ikai L (Google)

unread,
Feb 17, 2010, 9:28:11 PM2/17/10
to google-a...@googlegroups.com
Code download would only benefit Python, anyway, since Java source is not uploaded. There are a million reasons why this is a bad idea and some have been touched on. Personally, I cannot think of any situation in which I would use this over source control, which will allow me to annotate check-ins, create experimental branches, keep a log of progress and track incremental changes. Some companies, for instance, run automated performance tests and unit tests against every build, allowing the team to quickly discover which check-ins break functionality or degrade performance. 

Here are a few places to get started:

Git: http://progit.org/book/ <-- free hosting: github.com
SVN: http://svnbook.red-bean.com/ <--- free hosting at code.google.com
Mercurial: http://mercurial.selenic.com/ <--- free hosting at bitbucket.org and code.google.com

On every project I work on, at the minimum I start a git project so I can track changes and push to either Github or a local server running Git (all Git requires is a server running sshd).

As to the point regarding documentation, I'm glad that people who have never programmed before are using App Engine to learn how to develop software, however, documenting that it is important to use source control is completely out of scope. Source control is the very next thing developers need to learn after variables, loops, object oriented programming, and other topics. Heck, if I knew how to use source control when I was learning how to program, it would have helped me quite a bit, as I could have simply reverted to previous builds and been able to learn how to unbreak broken code I wrote. As a note, I may add on the F.A.Q. that uploaded applications cannot be downloaded, but this topic really doesn't belong in our docs.


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Ikai Lan

Andrew Chilton

unread,
Feb 17, 2010, 10:08:02 PM2/17/10
to google-a...@googlegroups.com
On 18 February 2010 15:28, Ikai L (Google) <ika...@google.com> wrote:
> Git: http://progit.org/book/ <-- free hosting: github.com

Also want to mention Gitorious for free Git hosting : http://gitorious.org/

It's nice, and also AGPLv3 :)

Good luck with tracking your project Renee!

Cheers,
Andy

--
contact: Andrew Chilton
website: http://www.chilts.org/blog/

kang

unread,
Feb 18, 2010, 2:32:16 AM2/18/10
to google-a...@googlegroups.com
I use dropbox to back up my app engine source code. I put the app engine code in a dropbox folder.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Stay hungry,Stay foolish.

Alex Nemoy

unread,
Feb 18, 2010, 3:25:30 AM2/18/10
to google-a...@googlegroups.com
On Thu, Feb 18, 2010 at 4:28 AM, Ikai L (Google) <ika...@google.com> wrote:
Code download would only benefit Python, anyway, since Java source is not uploaded. There are a million reasons why this is a bad idea and some have been touched on. Personally, I cannot think of any situation in which I would use this over source control, which will allow me to annotate check-ins, create


I can think of one very useful but possibly corner case scenario for this, and it's not related to helping manage the source code (I strongly encourage everyone to use a VCS  for their apps!).

An option to explicitly allow anyone to view the sources that are deployed would help open source python applications hosted on GAE reassure users that
what they are running is actually what they can reuse and fork. Right now there is no hard guarantee and developers must be trusted that the google code github
repo and the gae URL are referring to the same thing.

A solution would  be a 'Deploy to GAE'  API  to be accessed from Google Code or other VCS services, which would make the connection between a certain state of the source tree and a certain version of the deployed app more 'official', without actually requiring GAE to be able to provide the sources itself.


Prashant Gupta

unread,
Feb 18, 2010, 7:49:25 AM2/18/10
to google-appengine
Hi,

I also want to use Google Code for my project. I tried to set it up several times but failed all the time. So, then, I tried to browse code of some other projects. Following is the error msg received while trying to browse Google Guice code.


    RA layer request failed
svn: OPTIONS of 'https://google-guice.googlecode.com/svn': Could not resolve hostname `google-guice.googlecode.com': The requested name is valid, but no data of the requested type was found.

    RA layer request failed



I am not able to point out where I'm wrong. Please help me out to host my project to eclipse.
Screenshot.jpg

Sylvain

unread,
Feb 18, 2010, 11:31:03 AM2/18/10
to Google App Engine
I'm a little bit paranoid but for most of my projects, I always use :

- a CVS,...
- zipme, to download the current python files,..
http://www.manatlan.com/blog/zipme___download_sources_of_your_gae_website__as_a_zip_file
- a batch to automaticaly zip/upload the sources with my project.

For this last point, I've added a request :
http://code.google.com/p/googleappengine/issues/detail?id=831
"Add a flag to appcfg.py to zip/upload the sources"

Currently, I use something like this.

--- START BAT ---
7za a -tzip src\source.zip src\ -xr!*.pyc
appcfg.py update src/
--- END BAT ---

---- APP.YAML ---
- url: /source.zip
static_files: source.zip
upload: source.zip
login: admin
----------------------

On Feb 18, 8:32 am, kang <areyouloo...@gmail.com> wrote:
> I use dropbox to back up my app engine source code. I put the app engine
> code in a dropbox folder.
>
>
>
> On Thu, Feb 18, 2010 at 2:02 AM, Renee Maier <maier.re...@gmail.com> wrote:
> > I was wondering if there is a way to download the source code from my
> > app engine project?  My hard drive crashed on my Mac and I (stupidly)
> > did not have the source backed up.
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages