recoder / rails_deployments

Experimenting with Rails deployment models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Traditional deployment

Database configuration using rails-env:

# .env.development
POSTGRES_USER=rails
POSTGRES_PASSWORD=rails

Now init the DB:

rake db:create
bin/rails db:migrate RAILS_ENV=development
bin/rails db:migrate

rails s -b 0.0.0.0

Production:

POSTGRES_USER=rails POSTGRES_PASSWORD=rails RAILS_ENV=production rake db:setup
rake assets:precompile
POSTGRES_USER=rails POSTGRES_PASSWORD=rails RAILS_ENV=production rails s -b 0.0.0.0

...

About

Experimenting with Rails deployment models


Languages

Language:Ruby 71.9%Language:HTML 19.2%Language:CSS 5.2%Language:JavaScript 3.1%Language:CoffeeScript 0.6%