Importing a deployed google web apps project - google-app-engine

I have made a rookie mistake of not backing up a project I've been working on. A quite recent version of it is currently deployed. I had to re-install the app engine launcher and was wondering if there is any way at all to download the current project from the deployed version and carry on working on it?
I do recall seeing something about this in a google developers page I can't seem to find now, and it involved using the projects number as well as its id?

I think this is the link you're looking for. Or this one if you're using Java.
It basically comes down to this command in your command line:
appcfg.py download_app -A <your_app_id> -V <your_app_version> <output-dir>

Related

Which version of Eclipse works with PHP Google App Engine?

I've search in vain for about a month now and I can't get my PHP application pushed to Google App Engine, for the PHP platform. I've got the Java version set up nicely on my computer. I followed the instructions for GAE PHP here: https://developers.google.com/appengine/docs/php/gettingstarted/introduction
..but it's really confusing because it essentially tells me to install Eclipse made for PHP which is Luna, but the only versions of Eclipse that GAE supports is Kepler, Juno and Indigo (https://developers.google.com/eclipse/docs/getting_started), so I'm super confused.
I don't think you can install two different GAE plugins on a standard version of Eclipse (which is what I use for the Java GAE plugin).
I also tried (in vain, but it was worth a shot) to upload my app using my Java plugin/setup and obviously this was a terrible idea because all it does is just print the php script/code to the browser.
Any thoughts, brothas/sistas?
I have figured out how to push php files to GAE. There are essentially 3 ways.
Use appcfg.py. Run following command:
--appcfg.py update helloworld/, where helloworld is replaced by the name of the folder containing your project files. Make sure the path is relative to appcfg.py directory or an absolute path.
--Enter your Google username and password at the prompts.
**2. Use the App Engine Launcher, probably found in C:\Program Files (x86)\Google\google_appengine\launcher. Executable is called GoogleAppEngineLauncher.exe. Simply select the project in Launcher and click Deploy.
**3. Use Git. Create a local repository on your machine. Add a repo to your Github account, and follow these instructions: https://developers.google.com/appengine/docs/push-to-deploy#creating_a_cloud_project
**4. Use PhPStorm. Download PHPStorm for free for 30 days, or buy a student version/whatever version you quality for here: . Then follow these instructions: http://confluence.jetbrains.com/display/PhpStorm/Getting+Started+with+PhpStorm+as+Google+App+Engine+PHP+IDE. The only thing I haven't figured out is #5 - where to find the php-cgi.exe file. I can't provide a path for a file I don't have.
** denotes super easy and I have used successfully.
The Google Plugin for Eclipse is only for Java applications. For PHP applications, you'll want to use the Python/PHP SDK and either the command-line tools or the Launcher UI app for running the development server. You can still use Eclipse for editing your PHP source files.
RE #5 - "I can't provide a path for a file I don't have".
That was also my problem.
They are fond of pointing out that the SDK directory should contain dev_appserver.py and ‘google’ and ‘php’ packages but you don't find those in a simple search cause they are invisible. You have to muck through the installation directory.

Angular JS, Git and Non-Heroku Deployment

I have Ruby on Rails as my primary programming language and the workflow mostly went as make changes-commit changes-push changes-deploy with capistrano
I looked over the internet for ways to have such a workflow (or at least quite similar) for Angular.JS and I can't seem to find one. There is Yeoman but I can only see examples for Heroku. I host with Webfaction right now.
So I was wondering is there some way to track an angular JS project with Git (preferably Github) then deploy it to Webfaction from that git repo?
Thanks in advance!
I use yeoman to setup angular.js apps and capistrano to deploy them on production (digitalocean) - I wrote an article about this: http://howwedoapps.com/2014/04/03/deploy-angularjs-app-with-capistrano-on-the-cloud. I hope it helps.
I don't know anything about Webfaction, but if it's a VPS you have take a look at Dokku.
It's basically your own Heroku, hosted on your own server.
While it's not specificaly git based, capistrano is one of the most popular ways of deploying ruby web application to a vps. It has features that would allow you to deploy from github, but that would need to be configured separately and would need to be called from the command line from your development computer.

How do I clone a website that is hosted on Google App Engine?

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.
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.

Upload Jruby on rails on Google App Engine - cannot find gem appengine-rack

Just trying to deploy a simple Jruby on rails app on Google App Engine but falling at first hurdle.
I've been following instructions on https://code.google.com/p/appengine-jruby/ and a few other websites. I've installed the gem 'google-appengine' as instructed and Command Prompt tells me that it's installed.
As I started typing require 'appengine-rack' in my config.ru, I can see that my IDE tells me it doesn't recognise this file. I fire up the local server anyway just as a test and it tells me that "LoadError: no such file to load -- appengine-rack".
I can clearly see in C:\jruby-1.7.3\lib\ruby\gems\shared\gems\appengine-rack-0.0.13\lib\ . So I'm a bit stumped. When I run >gem list, I can also see that this gem is there.
I'm doing this for the first time.
I'm using Windows 7. Jruby version 1.7.3. Rails 3.2.1.
Thanks in advance.
Looks like the project you are trying to use is rather old, (last commit date is Date: Mar 30, 2011). And it is written there that they are only planing to have a support of version 3.x.
Anyway here is the answer to your question(rather old too)
Unable to get google-appengine for Jruby to work
And this search could be helpful https://stackoverflow.com/questions/tagged/google-app-engine+ruby
From rational point of view it is not very good idea to use this gems for production. If you need cloud hosting for your ruby procejct heroku would be a solution.
If you require appengine - you better go Java, Python or Go which are officially supported.

Eclipse new Web Application Project, can't find my GAE SDK

I've installed the Google Plugin for Eclipse 3.4 and it seems to work fine.
But when I start a new Web Application Project, it wants me to configure the Google App Engine SDK. I click on Add App Engine SDK, but it doesn't recognize my (valid) GAE SDK. It comes back with "Failed to initialize App Engine SDK at %path", no matter what path I give it.
Are you trying to use the Java or Python SDKs, and are you sure you downloaded the right one?
If Python, remember that the Google Eclipse plugin is currently Java-only.
Does your SDK run if you start dev_appserver from the command line? I had a similar problem once and it was because the script wanted to ask me about automatically checking for updates - once I'd answered the question and exited the appserver I was then able to add it to Eclipse.
Have you checked your "path" environment variable to include
;C:\Program Files\Google\google_appengine\
I had this issue. I downloaded the java zip package and extracted it manually but it turned out that the zip file was either corrupted or messed up during the extraction. Regardless, downloading the package again and re-extracting it fixed the problem for me.
Also, if you are on Python use the PyDev plugin for eclipse and start a Google AE project that way. Use the Google Eclipse plugin for GWT, Java->Js stuff.

Resources