Skip to content

Instantly share code, notes, and snippets.

View kannans's full-sized avatar
💻
☝️

Kannan S kannans

💻
☝️
View GitHub Profile
@kannans
kannans / 写経.txt
Created August 12, 2022 17:01 — forked from usutani/写経.txt
Rails 7: The Demo
macOS 11.6
rails 7.0.0
brew install vips
brew install redis
redis-server /usr/local/etc/redis.conf
00:00 Scaffolding
rails new demo
cd demo
@kannans
kannans / ruby-openssl-build.sh
Created February 27, 2023 10:41 — forked from vbatts/ruby-openssl-build.sh
building ruby with a specific openssl
#!/bin/sh
t_dir="$HOME/tmp"
mkdir -p ${t_dir}
pushd ${t_dir}
for url in \
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.9.3-p194.tar.bz2 \
http://openssl.org/source/openssl-1.0.1c.tar.gz
@kannans
kannans / 00_Heroku-Release-Phase-Review-Apps-Rails_README.md
Created March 12, 2023 12:19 — 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.