LoginSignup
1
1

More than 5 years have passed since last update.

[備忘録]bundle で指定したrailsのバージョンでアプリを作成

Last updated at Posted at 2018-02-13

bundle で指定したrailsのバージョンでアプリを作成

適当なアプリのディレクトリを作成

mkdir test_app && cd test_app

rbenv でrubyのバージョン指定

rbenv local 2.4.x

bundle でGemfileを設定

bundle init
vi Gemfile

下記のように好みのバージョンで指定する。

gem 'rails', '4.1.7'

gemのインストールをする

bundle install --path vendor/bundle

rails 構築

bundle exec rails new --skip-bundle .

他の方法

rails new する際にバージョンを指定

 rails _4.1.7_ new test_app
1
1
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
1
1