66
66

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.

bundle exec はもういやだ

Posted at
$ bundle exec rails server

railsにしてもrakeにしてもrspecにしても、1日に100回くらいbundle execを入力していて帰りたくなったので真面目に調べた。

ごめん、100回は言いすぎた。

rbenv-binstubs: A Bundler binstubs Plugin for rbenv

$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone https://github.com/ianheggie/rbenv-binstubs.git

これをいれて、後はbundle installの時にbinstubsを指定すれば、bundle execなしで実行できるぽい。

$ bundle install --path=vendor/bundle --binstubs=vendor/bin

bundle execと入力するのに3秒かかっていたとして、1日に100回実行していたら300秒ですよ、1日5分ですよ。

さっさと入れればよかった・・・。

66
66
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?