How to remove “bundle install” command during the project creation in Rails 3.1?

心已入冬 提交于 2019-11-30 06:14:55

You want the --skip-bundle flag:

rails new ggg --database=mysql --skip-bundle

However, to run your new app, you will still need to do a bundle install anyway, so you should determine why it's taking so long.

To solve your issue more permanently, create a regular rails app. Yes, I know it might take a long time for you.

rails new ggg --database=mysql

Then, inside the app, do a bundle install --system:

cd ggg
bundle install --system

This will copy all the gems you are having to install locally inside the project folder to your system folder. From now, it will be quick to create new projects.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!