Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Config path name change
Browse files Browse the repository at this point in the history
  • Loading branch information
ana0 committed May 2, 2019
1 parent bc3f0d5 commit 754c8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion postgraphile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion postgraphile/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 754c8cb

Please sign in to comment.