如何删除“捆绑安装”在Rails 3.1中创建项目期间的命令? [英] How to remove "bundle install" command during the project creation in Rails 3.1?
本文介绍了如何删除“捆绑安装”在Rails 3.1中创建项目期间的命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个新项目:
rails新建ggg --database = mysql
$ b并得到以下输出:
创建
创建README
创建Rakefile
创建config.ru
创建.gitignore
创建Gemfile
创建应用
创建应用/资产/图片/rails.png
创建应用程序/ assets / javascripts / application.js
创建应用程序/ assets / stylesheets / application.css
创建应用程序/ controllers / application_controller.rb
创建应用程序/helpers/application_helper.rb
创建应用程序/邮件程序
创建应用程序/模型
创建应用程序/视图/布局/ application.html.erb
创建应用程序/邮件程序/ .gitkeep
创建应用/模型/ .gitkeep
创建配置
创建配置/ routes.rb
创建配置/ application.rb
创建配置/ environment.rb
创建配置/环境
创建config / environments / development.rb
创建config / environments / production.rb
创建config / environments / test.rb
创建配置/初始化器
创建config / initializers / backtrace_silencers.rb
创建config / initializers / inflections.rb
创建config / initializers / mime_types.rb
创建config / initializers / secret_token.rb
创建配置/初始化程序/ session_store.rb
创建配置/初始化程序/ wrap_parameters.rb
创建配置/语言环境
创建配置/语言环境/ en.yml
创建配置/ boot.rb
create config / database.yml
create db
create db / seeds.rb
create doc
create doc / README_FOR_APP
create lib
create lib /任务
创建lib / tasks / .gitkeep
创建lib /资产
创建lib / assets / .gitkeep
创建日志
创建log / .gitkeep
创建public
创建public / 404.html
创建public / 422.html
创建public / 500.html
创建public / favicon.ico
创建public / index.html
创建public / robots.txt
创建脚本
创建脚本/导轨
创建测试/灯具
创建测试/灯具/.gitkeep
创建测试/功能
创建测试/功能/ .gitkeep
创建测试/集成
创建测试/集成/ .gitkeep
创建测试/单元
创建test / unit / .gitkeep
创建test / performance / browsing_test.rb
创建test / test_helper.rb
创建tmp /缓存
创建tmp / cache /资产
创建供应商/资产/样式表
创建供应商/ assets / stylesheets / .gitkeep
创建供应商/插件
创建供应商/插件/ .gitkeep
运行bundle install
任务捆绑安装需要大量时间...大约30-40分钟。
如何删除它需要
- skip-bundle
标记:
解决方案rails新建ggg --database = mysql --skip-bundle
但是,要运行新应用程序,仍然需要执行
bundle install
,所以您应该确定为什么它需要这么久。I am creating a new project:
rails new ggg --database=mysql
and get following output:
create create README create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/images/rails.png create app/assets/javascripts/application.js create app/assets/stylesheets/application.css create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/mailers create app/models create app/views/layouts/application.html.erb create app/mailers/.gitkeep create app/models/.gitkeep create config create config/routes.rb create config/application.rb create config/environment.rb create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/backtrace_silencers.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/secret_token.rb create config/initializers/session_store.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/boot.rb create config/database.yml create db create db/seeds.rb create doc create doc/README_FOR_APP create lib create lib/tasks create lib/tasks/.gitkeep create lib/assets create lib/assets/.gitkeep create log create log/.gitkeep create public create public/404.html create public/422.html create public/500.html create public/favicon.ico create public/index.html create public/robots.txt create script create script/rails create test/fixtures create test/fixtures/.gitkeep create test/functional create test/functional/.gitkeep create test/integration create test/integration/.gitkeep create test/unit create test/unit/.gitkeep create test/performance/browsing_test.rb create test/test_helper.rb create tmp/cache create tmp/cache/assets create vendor/assets/stylesheets create vendor/assets/stylesheets/.gitkeep create vendor/plugins create vendor/plugins/.gitkeep run bundle install
task "bundle install" takes a lot of time... about 30-40 minutes.
How to remove it?
解决方案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.这篇关于如何删除“捆绑安装”在Rails 3.1中创建项目期间的命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文