mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Introduce TYPEORM_EXTRA env variable (#770)
Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
This commit is contained in:
parent
7d57114d21
commit
961b1c1956
@ -396,6 +396,7 @@ TYPEORM_PASSWORD | password to use
|
|||||||
TYPEORM_PORT | port number for db if not the default for that db type
|
TYPEORM_PORT | port number for db if not the default for that db type
|
||||||
TYPEORM_TYPE | set to 'sqlite' or 'postgres'
|
TYPEORM_TYPE | set to 'sqlite' or 'postgres'
|
||||||
TYPEORM_USERNAME | username to connect as
|
TYPEORM_USERNAME | username to connect as
|
||||||
|
TYPEORM_EXTRA | any other properties to pass to TypeORM in JSON format
|
||||||
|
|
||||||
#### Testing:
|
#### Testing:
|
||||||
|
|
||||||
|
@ -142,6 +142,7 @@ export function getTypeORMSettings(): DataSourceOptions {
|
|||||||
"subscribers": [
|
"subscribers": [
|
||||||
`${codeRoot}/app/gen-server/subscriber/*.js`
|
`${codeRoot}/app/gen-server/subscriber/*.js`
|
||||||
],
|
],
|
||||||
|
...JSON.parse(process.env.TYPEORM_EXTRA || "{}"),
|
||||||
...cache,
|
...cache,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user