Config parameter rename

This commit is contained in:
Edvard 2019-04-18 13:56:28 +02:00
parent ec796d9813
commit 355f245bfe
2 changed files with 6 additions and 3 deletions

View File

@ -23,14 +23,17 @@ 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 - to add other schemas, use either the env variables, or a 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 - to add other schemas, use either the env variables,
or a config file `config.toml` and set the env var `CONFIG_PATH` to point to its location. Example `toml`:
```
[database]
name = "vulcanize_public"
hostname = "localhost"
port = 5432
schemas = ["public", "yourschema"]
gq_schemas = ["public", "yourschema"]
gq_user = "graphql"
gq_password = "graphql"
```
## Building

View File

@ -34,7 +34,7 @@ export function parseConfig(
database = parsedToml['database']['name'];
user = parsedToml['database']['user'];
password = parsedToml['database']['password'];
gqSchemas = parsedToml['database']['schemas'];
gqSchemas = parsedToml['database']['gq_schemas'];
gqUser = parsedToml['database']['gq_user'] || gqUser;
gqPassword = parsedToml['database']['gq_password'] || gqPassword;
}