Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
67
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@circled9

bundle exec はもういやだ

$ 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分ですよ。

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
67
Help us understand the problem. What are the problem?