Guest User

Untitled

a guest
Sep 21st, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. Usage:
  2. rails new APP_PATH [options]
  3.  
  4. Options:
  5. -r, [--ruby=PATH] # Path to the Ruby binary of your choice
  6. # Default: /Users/miszo97/.rvm/rubies/ruby-2.3.1/bin/ruby
  7. -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
  8. -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
  9. # Default: sqlite3
  10. -j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library
  11. # Default: jquery
  12. [--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
  13. -B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
  14. -G, [--skip-git], [--no-skip-git] # Skip .gitignore file
  15. [--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
  16. -M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
  17. -O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
  18. -P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
  19. -C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
  20. -S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
  21. [--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
  22. [--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
  23. -J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
  24. [--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
  25. -T, [--skip-test], [--no-skip-test] # Skip test files
  26. [--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
  27. [--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
  28. [--rc=RC] # Path to file containing extra configuration options for rails command
  29. [--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
  30. [--api], [--no-api] # Preconfigure smaller stack for API only apps
  31.  
  32. Runtime options:
  33. -f, [--force] # Overwrite files that already exist
  34. -p, [--pretend], [--no-pretend] # Run but do not make any changes
  35. -q, [--quiet], [--no-quiet] # Suppress status output
  36. -s, [--skip], [--no-skip] # Skip files that already exist
  37.  
  38. Rails options:
  39. -h, [--help], [--no-help] # Show this help message and quit
  40. -v, [--version], [--no-version] # Show Rails version number and quit
  41.  
  42. Description:
  43. The 'rails new' command creates a new Rails application with a default
  44. directory structure and configuration at the path you specify.
  45.  
  46. You can specify extra command-line arguments to be used every time
  47. 'rails new' runs in the .railsrc configuration file in your home directory.
  48.  
  49. Note that the arguments specified in the .railsrc file don't affect the
  50. defaults values shown above in this help message.
  51.  
  52. Example:
  53. rails new ~/Code/Ruby/weblog
  54.  
  55. This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
Advertisement
Add Comment
Please, Sign In to add comment