Home>

Currently, I am creating an original application with rails, but as the title suggests, when I do rails s, Usage: rails new APP_PATH [options] occurs and I am in trouble because I can not solve it.

The contents of the console screen (error content) and Gemfile are described at the bottom.

Would you please teach me?
Thanks for your cooperation.

~environment~
・ Mac os
・ Ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-darwin19]
・ Rails -v
Rails 6.0.3.3

~ Background ~
-To create headers, add directories under app/assets/stylesheets /, rename directories, write code, etc. (I don't know if it is related to this matter)
-In the gemfile, gem'bootsnap','>= 1.4.2', require: false Delete, bundle install, then disconnect the server (command + C)
-An error occurred when rails s to resume work.
-It has been confirmed that the current directory is in the application under development.

Console

Usage:
  rails new APP_PATH [options]
Options: Options:
      [--skip-namespace],

 [--no-skip-namespace] # Skip namespace (affects only isolated applications)
  -r, [--ruby = PATH] #Path to the Ruby binary of your choice
                                                             # Default: /Users/genkihirano/.rbenv/versions/2.6.6/bin/ruby
  -m, [--template = TEMPLATE] #Path to some application template (can be a filesystem path or URL)
  -d, [--database = DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
                                                             # Default: sqlite3
      [--skip-gemfile],

 [--no-skip-gemfile] # Don't create a Gemfile
  -G, [--skip-git],

 [--no-skip-git] # Skip .gitignore file
      [--skip-keeps],

 [--no-skip-keeps] # Skip source control .keep files
  -M, [--skip-action-mailer],

 [--no-skip-action-mailer] # Skip Action Mailer files
      [--skip-action-mailbox],

 [--no-skip-action-mailbox] # Skip Action Mailbox gem
      [--skip-action-text],

 [--no-skip-action-text] # Skip Action Text gem
  -O, [--skip-active-record],

 [--no-skip-active-record] # Skip Active Record files
      [--skip-active-storage],

 [--no-skip-active-storage] # Skip Active Storage files
  -P, [--skip-puma],

 [--no-skip-puma] #Skip Puma related files
  -C, [--skip-action-cable],[--no-skip-action-cable] # Skip Action Cable files
  -S, [--skip-sprockets],

 [--no-skip-sprockets] # ​​Skip Sprockets files
      [--skip-spring],

 [--no-skip-spring] # Don't install Spring application preloader
      [--skip-listen],

 [--no-skip-listen] # Don't generate configuration that depends on the listen gem
  -J, [--skip-javascript],

 [--no-skip-javascript] # Skip JavaScript files
      [--skip-turbolinks],

 [--no-skip-turbolinks] # Skip turbolinks gem
  -T, [--skip-test],

 [--no-skip-test] # Skip test files
      [--skip-system-test],

 [--no-skip-system-test] # Skip system test files
      [--skip-bootsnap],

 [--no-skip-bootsnap] # Skip bootsnap gem
      [--dev],

 [--no-dev] #Setup the application with Gemfile pointing to your Rails checkout
      [--edge],

 [--no-edge] #Setup the application with Gemfile pointing to Rails repository
      [--rc = RC] # Path to file containing extra configuration options for rails command
      [--no-rc],

 [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
      [--api],

 [--no-api] # Preconfigure smaller stack for API only apps
  -B, [--skip-bundle],

 [--no-skip-bundle] # Don't run bundle install
  --webpacker, [--webpack = WEBPACK] # Preconfigure Webpack with a particular framework (options: react, vue, angular, elm, stimulus)
      [--skip-webpack-install],

 [--no-skip-webpack-install] # Don't run Webpack install
Runtime options:
  -f, [--force] # Overwrite files that already exist
  -p, [--pretend],

 [--no-pretend] #Run but do not make any changes
  -q, [--quiet],

 [--no-quiet] #Suppress status output
  -s, [--skip],[--no-skip] # Skip files that already exist
Rails options:
  -h, [--help],

 [--no-help] # Show this help message and quit
  -v, [--version],

 [--no-version] # Show Rails version number and quit
Description:
    The'rails new' command creates a new Rails application with a default
    directory structure and configuration at the path you specify.
    You can specify extra command-line arguments to be used every time
    'rails new' runs in the .railsrc configuration file in your home directory.
    Note that the arguments specified in the .railsrc file don't affect the
    defaults values ​​shown above in this help message.
Example:
    rails new ~/Code/Ruby/weblog
    This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
source'https://rubygems.org'
git_source (: github) {| repo | "https://github.com/#{repo}.git"}
ruby '2.6.6'
gem'rails','~>6.0.3','>= 6.0.3.3'
gem'puma','~>4.1'
gem'sass-rails','>= 6'
gem'webpacker','~>4.0'
gem'turbolinks','~>5'
gem'jbuilder','~>2.7'
gem'bootstrap'
gem'bootsnap','>= 1.4.2', require: false
gem'bootstrap-sass'
gem'devise'
group: development,: test do
  gem'rails-controller-testing'
  gem'rspec-rails'
  gem'sqlite3'
  gem'byebug', platforms: [: mri,: mingw,: x64_mingw]
end
group: development do
  gem'spring-commands-rspec'
  gem'web-console','>= 3.3.0'
  gem'listen','~>3.2'
  gem'spring'
  gem'spring-watcher-listen','~>2.0.0'
end
group: test do
  gem'webdrivers'
  gem'capybara','>= 2.15'
  gem'selenium-webdriver'
  gem'webdrivers'
end
group: production do
  gem'pg'
end
gem'tzinfo-data'
  • Answer # 1

    Thank you for your reply, technocore!
    After executing the bundle exec rake app: update: bin command, the server can now be started normally.

    I've never returned to the part I committed with git, so it was a great learning experience.
    If any error occurs from the next time, I will return to the commit that was working normally, investigate the cause, and improve it.