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.
有人能给我一些关于如何将我的rails应用部署到GAE的建议吗?我一直在阅读它,但它似乎是一个相当复杂的任务。
I tried with the google-appengine
gem, but its not a piece of cake either.
我试用了google-appengine gem,但它也不是小菜一碟。
Has there been any progress with the DataMapper
adapter or will I need to make changes to my models?
在DataMapper适配器方面有任何进展吗?或者我需要对我的模型进行修改吗?
I was hoping to see a full-detail tutorial about it, but those that I found were somewhat out-of-date.
我希望看到关于它的完整的教程,但是我发现的那些有点过时。
2 个解决方案
#1
45
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:
在谷歌的应用程序引擎上部署Rails已经变得比以前容易得多了。你应该注意到以下几点:
- App Engine only supports the Python and Java environments so for Rails you will be deploying on JRuby
- App Engine只支持Python和Java环境,因此对于Rails,您将在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
- AppEngine的数据存储基于BigTable,因此您无法在关系数据库上使用ActiveRecord(如果您希望您的数据存储在AppEngine中托管)。但是正如@Geoff Lanotte指出的那样,您可以使用一个Datamapper适配器
- 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://code.google.com/p/appengine-jruby/
http://rails-primer.appspot.com/
http://rails-primer.appspot.com/
http://gist.github.com/335023
#2
1
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.).
如果Ruby on Rails适合您,您可以在谷歌计算引擎上部署它。计算引擎是Iaas(作为服务的基础设施),谷歌应用引擎使用它,PaaS(作为服务的平台)。计算引擎是一个较低的抽象层(您可以访问OS资源,比如:文件系统、网络等)。
Detailed instructions: http://startup-with-gae.blogspot.com/2015/08/how-to-deploy-ruby-on-rails-application.html
详细说明:http://startup-with-gae.blogspot.com/2015/08/how-to-deploy-ruby-on-rails-application.html
#1
45
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:
在谷歌的应用程序引擎上部署Rails已经变得比以前容易得多了。你应该注意到以下几点:
- App Engine only supports the Python and Java environments so for Rails you will be deploying on JRuby
- App Engine只支持Python和Java环境,因此对于Rails,您将在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
- AppEngine的数据存储基于BigTable,因此您无法在关系数据库上使用ActiveRecord(如果您希望您的数据存储在AppEngine中托管)。但是正如@Geoff Lanotte指出的那样,您可以使用一个Datamapper适配器
- 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://code.google.com/p/appengine-jruby/
http://rails-primer.appspot.com/
http://rails-primer.appspot.com/
http://gist.github.com/335023
#2
1
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.).
如果Ruby on Rails适合您,您可以在谷歌计算引擎上部署它。计算引擎是Iaas(作为服务的基础设施),谷歌应用引擎使用它,PaaS(作为服务的平台)。计算引擎是一个较低的抽象层(您可以访问OS资源,比如:文件系统、网络等)。
Detailed instructions: http://startup-with-gae.blogspot.com/2015/08/how-to-deploy-ruby-on-rails-application.html
详细说明:http://startup-with-gae.blogspot.com/2015/08/how-to-deploy-ruby-on-rails-application.html