mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
8 lines
308 B
Bash
8 lines
308 B
Bash
# Load env values from config.env
|
|
export $(grep -v '^#' config.env | xargs)
|
|
npm run prerun
|
|
export DATABASE_HOST=$DATABASE_MIGRATIONS_HOST
|
|
export DATABASE_PORT=$DATABASE_MIGRATIONS_PORT
|
|
|
|
sudo npm i -g ts-node
|
|
npx typeorm-ts-node-esm migration:run --dataSource=./Common/Server/Infrastructure/PostgresConfig.ts |