Google App Engine上的Ruby on Rails应用程序 [英] Ruby on Rails app on Google App Engine

查看:142
本文介绍了Google App Engine上的Ruby on Rails应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以给我一些关于如何将我的rails应用程序部署到GAE的指针?我一直在阅读,但它似乎是一个相当复杂的任务。



我试着用 google-appengine $ b

使用 DataMapper 有什么进展,但是它并不是小菜一碟。适配器还是我需要对我的模型进行更改?



我希望看到关于它的完整详细教程,但是我发现的教程有点缺乏-date。

解决方案

在Google的App Engine上部署Rails比以前变得容易得多。有几点需要注意的警告:




  • App Engine只支持Python和Java环境,因此对于您将要部署的Rails JRuby

  • App Engine的数据存储基于BigTable,因此您不会能够在关系数据库上使用ActiveRecord(如果您希望您的数据存储位于AppEngine中)。但正如@Geoff Lanotte指出的那样,您可以使用Datamapper适配器

  • 预部署测试是在Google的沙箱工具中完成的,而不是像 script /服务器



您可能会考虑的其他一些资源:

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



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



http:// gist。 github.com/335023


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.

解决方案

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

这篇关于Google App Engine上的Ruby on Rails应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆