0

When executing the rails new ... command, eventually the task bundle install will be executed. For many of my projects I require the same gems and have to add them manually after creating the app and then run bundle install again manually.

Is there any way to modify the rails new command to write those gems inside the Gemfile while generating the app, so that when it executes bundle install all my gems are already in place? Ideally only triggered if I give an optional parameter?

2
  • FYI: You can do rails new app --skip-bundle, and it won't run bundle install directly. You can then add the gems, and run bundle yourself.
    – Dogbert
    Jan 1, 2013 at 16:01
  • Thanks, but I don't mind it running bundle - in fact, I want to use it to directly install the gems I need. Jan 1, 2013 at 16:04

1 Answer 1

3

Try to use application templates

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.