Ruby on Rails app on Google App Engine

怎甘沉沦 提交于 2019-11-29 19:57:24

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

You can deploy Ruby on Rails on Google Compute Engine if it works for you. Compute Engine is Iaas (Infrastructure as a Service) and it is used by Google App Engine, which is PaaS (Platform as a Service). Compute Engine is one abstraction layer lower (you can access OS resources, like: file system, network etc.).

Detailed instructions: http://startup-with-gae.blogspot.com/2015/08/how-to-deploy-ruby-on-rails-application.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!