Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # Generating a new Rails 5 Project
  2.  
  3. ```
  4. rails new <appname> -T --d=postgresql
  5. ```
  6.  
  7. ##### explaination
  8. `-T` Skips test generator for those prefer using rspec
  9.  
  10. `--d=postgresql` generates with Postgresql as database
  11.  
  12. ## cd to directory and run command
  13.  
  14. if using rbenv or the like, run
  15.  
  16. you may use which ruby version you like
  17.  
  18. \**note that rails 5 requires 2.2.2*
  19. ```
  20. touch .env && echo '2.4.0' > .ruby_version
  21. ```
  22. otherwise
  23. ```
  24. touch .env
  25. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement