Created
August 12, 2018 22:12
-
-
Save LucasKuhn/5a3fd5a1170ea5a3a076b6a440474f26 to your computer and use it in GitHub Desktop.
Rails 5 app creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails -v | |
if not 5.2 -> gem install rails -v 5.2.0 | |
ruby -v | |
if not 2.4.0 -> rbenv install 2.4.0 | |
rails new myapp --database=postgresql | |
bundle install | |
bundle exec rake db:create | |
bundle exec rake db:migrate | |
bundle exec rails server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment