用Ruby 1.9.3可以在Heroku上运行我的Rails应用程序吗?如果是这样,怎么样? [英] Is it possible to run my Rails app on Heroku with Ruby 1.9.3? If so, how?

查看:123
本文介绍了用Ruby 1.9.3可以在Heroku上运行我的Rails应用程序吗?如果是这样,怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过这个提示: https://github.com/thoughtbot/laptop / b>

$ b 在部署中,我看到

 / pull / 14#issuecomment-3192270  ----->使用RUBY_VERSION:ruby-1.9.3-p0 

但是我的日志显示环境变量不被尊重

  INFO ruby​​ 1.9.2(2011-07-09)[x86_64-linux] 

接受Hack​​y /实验解决方案!

编辑:我在雪松堆叠上。 / p> 解决方案

下面是引用这个问题的每个人的更新... Heroku现在允许你在你的Gemfile中指定你的ruby版本,他们除了最新版本的打包机。



首次运行:

  gem install bundler --pre 

然后将ruby'1.9.3'添加到您的Gemfile中。

  source'http://rubygems.org'

ruby​​'1.9.3'
gem'rails','3.2 .3'

Heroku的完整版本详细介绍在 http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/


I tried this tip: https://github.com/thoughtbot/laptop/pull/14#issuecomment-3192270 .

On deploy I see

-----> Using RUBY_VERSION: ruby-1.9.3-p0

But my logs show the environment variable is not respected

INFO  ruby 1.9.2 (2011-07-09) [x86_64-linux]

Hacky / experimental solutions accepted!

Edit: I am on the cedar stack.

解决方案

Here's an update for everyone referencing this question... Heroku now allows you to specify your ruby version in your Gemfile, thanks to their addition to the latest version of bundler.

First run:

gem install bundler --pre

then add ruby '1.9.3' to your Gemfile as such.

source 'http://rubygems.org'

ruby '1.9.3'
gem  'rails', '3.2.3'

The full release from Heroku with details is at http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/

这篇关于用Ruby 1.9.3可以在Heroku上运行我的Rails应用程序吗?如果是这样,怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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