Skip to content

Instantly share code, notes, and snippets.

@josephglanville
josephglanville / commands.txt
Last active August 28, 2015 21:18 — forked from lmars/commands.txt
Flynn Dedicated Postgres
# create new app as your custom postgres provider
flynn create --remote "" custompg
# create a release using the latest postgresql image from /etc/flynn/bootstrap-manifest.json
flynn -a custompg release add -t docker -f config.json "https://dl.flynn.io/tuf?name=flynn/postgresql&id=30f08003a029c5d5958263bf923d0377c958b313d417ba49489ff9c5940a388b"
# modify the app deployment strategy to "postgres"
flynn -a controller pg psql <<< "UPDATE apps SET strategy = 'postgres' WHERE name = 'custompg';"
# scale postgres and web to 3 and 2 processes respectively