Created
October 10, 2019 15:51
-
-
Save benjie/dde3e762abf31a1eca99e348acf1e471 to your computer and use it in GitHub Desktop.
Example gmrc from https://github.com/graphile/starter/blob/master/.gmrc (not published at time of writing)
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
{ | |
"pgSettings": { | |
"search_path": "app_public,app_private,app_hidden,public" | |
}, | |
"placeholders": { | |
":DATABASE_AUTHENTICATOR": "!ENV", | |
":DATABASE_VISITOR": "!ENV" | |
}, | |
"afterReset": [ | |
"afterReset.sql", | |
{ | |
"_": "command", | |
"command": "cd backend/dist/worker && npx --no-install graphile-worker --once" | |
} | |
], | |
"afterAllMigrations": [ | |
{ | |
"_": "command", | |
"shadow": true, | |
"command": "if [ \"$IN_TESTS\" != \"1\" ]; then ./scripts/dumpdb; fi" | |
} | |
], | |
"afterCurrent": [ | |
{ | |
"_": "command", | |
"shadow": true, | |
"command": "if [ \"$IN_TESTS\" = \"1\" ]; then node scripts/test_seed.js; fi" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment