7
6

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 5 years have passed since last update.

Rails 4.1 で Spring を有効にしたメモ

Posted at

Spring は、Rails 4.1 で標準となったプレローダで、rails rake コマンドを早くすることができます。

rails new した初期状態で、次のように Gemfile に記載されています。

ただ、bundle install して gem はインストールされていても、そのままだと rails rake コマンドに Spring が適用されていません。ですので、使う場合は次のようにします。

$ bundle exec spring binstub --all

すると、bin/spring が生成されると共に、bin/rails bin/rake が次のように上書きされます。

あとは普通に ./bin/rails./bin/rake コマンドの実行時に自動で Spring が適用されているので、意識せず Spring の恩恵を受けることができます^^

ほか

自社のブログにも投稿しました。

7
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
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?