Skip to content

Instantly share code, notes, and snippets.

View lornatumuhairwe's full-sized avatar

Lorna Tumuhairwe lornatumuhairwe

View GitHub Profile
@lornatumuhairwe
lornatumuhairwe / 00_Heroku-Release-Phase-Review-Apps-Rails_README.md
Created October 10, 2018 09:10 — forked from stevenharman/00_Heroku-Release-Phase-Review-Apps-Rails_README.md
Heroku Release Phase script for managing Rails DB migrations, and playing nice with Review Apps and postdeploy scripts

Heroku Release Phase + Review Apps + Rails

This is a simplified, but fairly thorough, set of scripts and configuration to enable Heroku Release Phase for Rails apps. Further, this particular set up plays nicely with Heroku Review Apps in that the release phase script will:

  1. Fail, loudly, if the DB does not yet exist.
  2. Load the DB schema if the current schema version (as determined by bin/rails db:version) is 0.
  3. Run DB migrations otherwise.

For a "normal" app that usually means it will run the DB migrations.

@lornatumuhairwe
lornatumuhairwe / Gemfile
Created September 3, 2018 05:57 — forked from jeroenr/Gemfile
Make will_paginate generate ajax links
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes