Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generating a new Rails 5 Project
- ```
- rails new <appname> -T --d=postgresql
- ```
- ##### explaination
- `-T` Skips test generator for those prefer using rspec
- `--d=postgresql` generates with Postgresql as database
- ## cd to directory and run command
- if using rbenv or the like, run
- you may use which ruby version you like
- \**note that rails 5 requires 2.2.2*
- ```
- touch .env && echo '2.4.0' > .ruby_version
- ```
- otherwise
- ```
- touch .env
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement