This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |