运行捆绑安装后,Rails 新的 SampleApp 永远挂起 [英] Rails New SampleApp Hangs forever after Run Bundle Install

查看:41
本文介绍了运行捆绑安装后,Rails 新的 SampleApp 永远挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建新的示例项目时,我的 Rails 新示例永远挂起并且没有将控制权还给我.

While creating new sample project My Rails New Sample hangs forever and does not give controll back to me.

Cntrl+C,它会要求终止批处理作业...

On pressing Cntrl+C its asks for terminating Batch job...

我是 ruby​​ On Rails 的新手....请帮忙

I am new to ruby On Rails....Please help

C:\Sites>rails new MySample2
DL is deprecated, please use Fiddle
      create
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      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/views/layouts/application.html.erb
      create  app/assets/images/.keep
      create  app/mailers/.keep
      create  app/models/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/bundle
      create  bin/rails
      create  bin/rake
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/secrets.yml
      '
      ' 
      ' 
      And So on....at the end its showls like

      create  vendor/assets/stylesheets/.keep
         run bundle install
      DL is deprecated,please use fiddle

推荐答案

看起来 bundler 无法下载 gems.添加此配置

It looks like bundler cannot download gems. Add this config

git config --global url."https://".insteadOf git://

它将任何 git://.. 源更改为 https://动态

it change any git://.. source to https:// on the fly

这篇关于运行捆绑安装后,Rails 新的 SampleApp 永远挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆