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

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.

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.

Failed to initialize App Engine SDK 1.8.9

I am using Indigo on a Mac Pro (10.9.1). I updated to Java1.7 in order to run some updated Google Play Service samples. Under Installed JREs, JAVA7 is shown as the only and default choice, which points to the new Java path. But when I start Eclipse, it started complaining that "JRE version is 1.6.0; version 1.7.0 or later is needed to run Google plugin for Eclipse".
I tried to add the vm option in eclipse.ini, i.e. I added
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/home/bin/java
above "-vmargs" as described here: http://wiki.eclipse.org/Eclipse.ini.
It doesn't make any difference though. Since then, I have uninstalled GPE from Eclipse and installed them again via "install new software" from https://dl.google.com/eclipse/plugin/3.7. Still the same problem. Under Google->App Engine, there is an error message "Failed to initialize App Engine SDK (path)". This points to appengine-java-sdk-1.8.9.
I have checked my Java version using all means I am aware of, i.e. from run Java -version, using Java's control panel, output from code... They all show I am using Java 1.7.0.51.
Any help is appreciated!
Edit: Google has provided a solution that works great. Add this argument in eclipse.ini
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_WHATEVERTHESUFFIXIS/Contents/Home/jre/lib/server/libjvm.dylib
Make sure that eclipse Is compiling your project to 1.7 specifications. Even though you have 1.7 selected as your virtual machine, it might be compiling to 1.6. It's in the eclipse project settings

Importing a deployed google web apps project

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>

Cloud IDE for Google App Engine using GO

I've been struggling to find an online IDE which supports Go and Google App Engine. Codeenvy supports it using python, while Cloud9 runs python 2.6 (which isn't compatible with GAE), and the update doesn't work.
Is there any IDE that will allow me to develop and deploy Go to GAE?
Python 2.7.3 should be installable from command line in Cloud9 via c9pm install python27 (see also the github repo.
Koding comes with Go, Python2 & 3, and best of all gives you a normal Ubuntu VM with full root access! It will work great with Go and GAE :)

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