Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails app on Google App Engine

Can anyone give me some pointers on how I could deploy my rails app to GAE? I've been reading about it, but it seems to be a fairly complicated task.

I tried with the google-appengine gem, but its not a piece of cake either.

Has there been any progress with the DataMapper adapter or will I need to make changes to my models?

I was hoping to see a full-detail tutorial about it, but those that I found were somewhat out-of-date.

like image 770
Albus Dumbledore Avatar asked Jul 19 '10 05:07

Albus Dumbledore


People also ask

Can you make apps with Ruby on Rails?

Ruby on Rails (often called Rails) is an open-source, web application development framework written in the Ruby programming language. Rails makes it fun and easy to program web applications: it allows you to write less code but accomplish more than most frameworks.

Is Google App Engine deprecated?

In Google I/O 2011, Google announced App Engine Backends, which are allowed to run continuously, and consume more memory. The Backend API was deprecated as of March 13, 2014 in favor of the Modules API.

Is Google App Engine a VM?

Google App EngineCompute Engine delivers configurable virtual machines running in Google's data centers with access to high-performance networking infrastructure and block storage solutions. App Engine is a fully managed, serverless platform for developing and hosting web applications at scale.


1 Answers

Deploying Rails on Google's App Engine has become a lot easier than it used to be. There are a couple of caveats you should be aware of:

  • App Engine only supports the Python and Java environments so for Rails you will be deploying on JRuby
  • App Engine's datastore is based on BigTable so you won't be able to use ActiveRecord on a relational database (if you want your datastore hosted in AppEngine). But as @Geoff Lanotte as pointed out there is a Datamapper adapter you can use
  • Pre-deployment testing is done within Google's sandbox tools as opposed to things like script/server

Some other resources you might consider:

http://code.google.com/p/appengine-jruby/

http://rails-primer.appspot.com/

http://gist.github.com/335023

like image 171
bjg Avatar answered Sep 24 '22 23:09

bjg