From 754c8cb18de863b4f291c1dfe6b7f7328aff9ab8 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 2 May 2019 09:55:25 -0400 Subject: [PATCH] Config path name change --- postgraphile/README.md | 2 +- postgraphile/src/server/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/postgraphile/README.md b/postgraphile/README.md index 9c388ca3..279ebd0a 100644 --- a/postgraphile/README.md +++ b/postgraphile/README.md @@ -23,7 +23,7 @@ Build the docker image in this directory. Start the `GraphiQL` frontend by: * GraphiQL frontend is available at `:3000/graphiql` GraphQL endpoint is available at `:3000/graphql` -By default, this build will expose only the "public" schema and will disable mutations - to change mutation behaviour, you can use an optional config file `config.toml` and set the env var `CONFIG_PATH` to point to its location. Example `toml`: +By default, this build will expose only the "public" schema and will disable mutations - to change mutation behaviour, you can use an optional config file `config.toml` and set the env var `POSTGRAPHILE_CONFIG_PATH` to point to its location. Example `toml`: ``` [database] diff --git a/postgraphile/src/server/config.ts b/postgraphile/src/server/config.ts index 638036fe..90be4f8a 100644 --- a/postgraphile/src/server/config.ts +++ b/postgraphile/src/server/config.ts @@ -5,7 +5,7 @@ import { PostgraphileOptions } from '../adapters/postgraphile'; -export const CONFIG_PATH_KEY = 'CONFIG_PATH'; +export const CONFIG_PATH_KEY = 'POSTGRAPHILE_CONFIG_PATH'; export const SERVER_PORT_KEY = 'SERVER_PORT'; const DEFAULT_SERVER_PORT = '3000';