Built using the official tutorial(s) at: http://guides.rubyonrails.org/getting_started.html
- create Gemfile with 'rails' and source of rubygems
bundle exec rails new blog
- Follow the tutorial above
- Set
$DATABASE_URL
or use default sqlite bin/rails db:migrate
Check in config/database.yml
to setup a more complex database, e.g.:
development:
adapter: mysql2
encoding: utf8
database: blog_development
pool: 5
username: root
password:
socket: /tmp/mysql.sock