rails new mytest无法创建正确的文件夹结构

问题描述 投票:1回答:1

我刚刚在rvm上安装了rails 6.0.2.1ruby版本2.6.3p62(使用ruby-2.7.0-preview1可以得到相同的结果)

输出是这个:

rails new mytest
      create  
      create  README.md
      create  Rakefile
      create  .ruby-version
      create  config.ru
      create  .gitignore
      create  Gemfile
         run  git init from "."

代替rails 3.2.22(输出摘要):

rails new mytest
  create  
  create  README.rdoc
  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  config
  ...
     run  bundle install

任何想法?只是一个错误还是我错了?

structure ruby-on-rails-6
1个回答
0
投票

已解决,问题很简单,这台机器上没有git安装

rails new mytest --skip-git

按方面运行!

感谢此post

© www.soinside.com 2019 - 2024. All rights reserved.