6
6

More than 5 years have passed since last update.

[Heroku] Heroku の Rails プロジェクトの Ruby のバージョンを確認する方法

Posted at

コマンド

ローカルの heroku のプロジェクトがあるディレクトリにて以下のコマンドを打ち込む。

heroku run 'ruby -e "puts RUBY_VERSION"'

表示は以下の様な感じ。

Running `ruby -e "puts RUBY_VERSION"` attached to terminal... up, run.9368
2.0.0

GemfileにRubyのバージョンを指定

Gemfileの冒頭部分に。

Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6