1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

rails gemインストールの環境指定

Posted at

gemの導入について
範囲を変える方法があるので備忘録として書きます。

全ての環境で

gemfile

# いずれの環境でも必要
gem 'devise'

開発環境のみ

gemfile

# 開発環境にのみ必要
group :development do 
     gem 'rspec'
end

テスト環境のみ

gemfile

# テスト環境にのみ必要
group :test do 
     gem 'rspec'
end

本番環境のみ

gemfile

# 本番環境にのみ必要
group :production do 
     gem 'unicorn'
end
1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?