forked from cerc-io/ipld-eth-server
Config path name change
This commit is contained in:
parent
bc3f0d5eaf
commit
754c8cb18d
@ -23,7 +23,7 @@ Build the docker image in this directory. Start the `GraphiQL` frontend by:
|
|||||||
* GraphiQL frontend is available at `:3000/graphiql`
|
* GraphiQL frontend is available at `:3000/graphiql`
|
||||||
GraphQL endpoint is available at `:3000/graphql`
|
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]
|
[database]
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
PostgraphileOptions
|
PostgraphileOptions
|
||||||
} from '../adapters/postgraphile';
|
} 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';
|
export const SERVER_PORT_KEY = 'SERVER_PORT';
|
||||||
|
|
||||||
const DEFAULT_SERVER_PORT = '3000';
|
const DEFAULT_SERVER_PORT = '3000';
|
||||||
|
Loading…
Reference in New Issue
Block a user