Slide 31
Slide 31 text
https://www.flickr.com/photos/nasamarshall/12678324214
DATABASE_URL=postgres://${PGUSER}@${PGHOST:-localhost}:${PGPORT:-5432}/some_db!
REDIS_URL=redis://127.0.0.1:6379!
SESSION_SECRET=deadbeef
.env
DATABASE_URL=postgres://${PGUSER}@${PGHOST:-localhost}:${PGPORT:-5432}/test_db!
REDIS_URL=redis://127.0.0.1:6379/5
.env.test
# I run Postgres in a VM because I rebel against the system!
ENV["DATABASE_URL"] = "postgres://172.109.10.1/some_db"!
ENV["DATABASE_URL"].gsub!("some_db", "test_db") if ENV["RACK_ENV"] == "test"
config/personal.rb