Skip to content

Instantly share code, notes, and snippets.

@LucasKuhn
Created August 12, 2018 22:12
Show Gist options
  • Save LucasKuhn/5a3fd5a1170ea5a3a076b6a440474f26 to your computer and use it in GitHub Desktop.
Save LucasKuhn/5a3fd5a1170ea5a3a076b6a440474f26 to your computer and use it in GitHub Desktop.
Rails 5 app creation
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