Skip to content

Instantly share code, notes, and snippets.

@benjie
Created October 10, 2019 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjie/dde3e762abf31a1eca99e348acf1e471 to your computer and use it in GitHub Desktop.
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)
{
"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