mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed migrations directory to default to the production version.
This is the downside of this patch - the .env file has to be different in dev and production version
This commit is contained in:
parent
94424f17a2
commit
cebf92c451
@ -4,4 +4,7 @@ DB_USER=root
|
|||||||
DB_PASSWORD=
|
DB_PASSWORD=
|
||||||
DB_DATABASE=gradido_community
|
DB_DATABASE=gradido_community
|
||||||
MIGRATIONS_TABLE=migrations
|
MIGRATIONS_TABLE=migrations
|
||||||
MIGRATIONS_DIRECTORY=./migrations/
|
// This value is set to the default for the built version.
|
||||||
|
// Therefore you need to overwrite this when using the dev version
|
||||||
|
// MIGRATIONS_DIRECTORY=./migrations/
|
||||||
|
MIGRATIONS_DIRECTORY=./build/migrations/
|
||||||
@ -13,7 +13,7 @@ const database = {
|
|||||||
|
|
||||||
const migrations = {
|
const migrations = {
|
||||||
MIGRATIONS_TABLE: process.env.MIGRATIONS_TABLE || 'migrations',
|
MIGRATIONS_TABLE: process.env.MIGRATIONS_TABLE || 'migrations',
|
||||||
MIGRATIONS_DIRECTORY: process.env.MIGRATIONS_DIRECTORY || './migrations/',
|
MIGRATIONS_DIRECTORY: process.env.MIGRATIONS_DIRECTORY || './build/migrations/',
|
||||||
}
|
}
|
||||||
|
|
||||||
const CONFIG = { ...database, ...migrations }
|
const CONFIG = { ...database, ...migrations }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user