nunos
nunos

Reputation: 21389

Why do I have to run 'bundle install' after every rails project I create?

Everytime I create a new rails project I have to run bundle install at the end. I know for a fact that not everybody need to do this.

Do you know any way I can avoid this step? It does take some time to complete...

Thanks.

Upvotes: 3

Views: 1193

Answers (1)

Leonid Shevtsov
Leonid Shevtsov

Reputation: 14179

bundle install prepares a fixed set of gems for your application, which has all the dependencies and versions resolved. It stores the result in a file called Gemfile.lock.

You have to update the Gemfile.lock after modifying Gemfile, in this case you have to create it with bundle install after generating the app.

You don't have to run bundle install only if you're not using Bundler, which is only possible with Rails 2.3.

Upvotes: 3

Related Questions