Skip to content

Instantly share code, notes, and snippets.

View joshowen's full-sized avatar

Josh Owen joshowen

  • Openfolio
  • New York, NY
View GitHub Profile
@joshowen
joshowen / circle.yml
Last active January 10, 2023 13:19
CircleCI hack for saving keeping databases in build cache
# Notes:
# - Replace <DB_NAME> with your database
# - Replace <SOME_PROJECT_WITH_A_TEST> with an appname that has an integration test, this will run your migrations
database:
override:
# Preserve Postgres in cache
- sudo service postgresql stop || exit 0
- "if [ -d ~/postgres/ ]; then sudo cp -r ~/postgres/* /var/lib/postgresql/9.4; sudo chown -R postgres:postgres /var/lib/postgresql/9.4/*; fi"
- sudo service postgresql start || exit 0

Keybase proof

I hereby claim:

  • I am joshowen on github.
  • I am joshowen (https://keybase.io/joshowen) on keybase.
  • I have a public key whose fingerprint is D502 7D2D EBCE 2018 181E CB21 D81B 29DE D5F7 2DD0

To claim this, I am signing this object: