简体   繁体   English

如何在Heroku上的Rails应用程序上使用多个ruby

[英]How to work with multiple ruby on rails applications on heroku

I want to run two rails apps which have rails version 3.1.10, 4.0.2 & ruby 1.9.2, 2.1.0. 我想运行两个具有Rails版本3.1.10、4.0.2和ruby 1.9.2、2.1.0的Rails应用程序。 Is it possible to do this using Heroku? 是否可以使用Heroku做到这一点?

As long as you specify the ruby and rails version in your Gemfiles, heroku will take care of it for you. 只要您在Gemfile中指定ruby和rails版本,heroku就会为您处理。 I have an app running on ruby 1.9.2 and rails 3.2.13 and another on ruby 2.0.0 and rails 4.0.3. 我有一个在ruby 1.9.2和rails 3.2.13上运行的应用程序,另一个在ruby 2.0.0和rails 4.0.3上运行的应用程序。

Yes, It is possible just make sure that the ruby versions with rails 4. It requires Ruby version 2.0.0+. 是的,有可能只是确保Ruby版本带有rails4。它需要Ruby 2.0.0+版本。 Just check the https://devcenter.heroku.com/articles/getting-started-with-rails4 https://devcenter.heroku.com/articles/getting-started-with-rails3 for the pre requisites. 只需检查https://devcenter.heroku.com/articles/getting-started-with-rails4 https://devcenter.heroku.com/articles/getting-started-with-rails3以了解先决条件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何开始使用heroku开发Ruby on Rails应用程序? - How to start developing Ruby on Rails applications with heroku? Ruby on Rails的多个应用程序 - Multiple applications with Ruby on Rails 如何在同一域上运行\\处理多个Ruby on Rails应用程序? - How to run\handle multiple Ruby on Rails applications on the same domain? 在 nginx 上运行多个 Ruby on Rails 应用程序 - Run multiple Ruby on Rails applications on nginx 如何在 Rails 离线应用程序上分发 ruby? - How to distribute ruby on rails offline applications? 如何使用自定义ruby和rails用于不同的应用程序? - How to use custom ruby and rails for different applications? Ruby On Rails回调在Heroku上不起作用,但在本地工作 - Ruby On Rails callbacks don't work on Heroku, but work locally 为多个Ruby-on-Rails应用程序运行多种版本的Passenger - Running Multiple Versions of Passenger for Multiple Ruby-on-Rails Applications 如何在运行具有不同 Ruby 版本的多个 Rails 应用程序的服务器上的 cron 作业中使用路径 - How to use a path in cron jobs on a server running multiple Rails applications with different Ruby versions 如何在轨道上用红宝石思考狮身人面像时使用多个参数 - How do I work with multiple params with thinking sphinx in ruby on rails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM