mirror of
https://github.com/informaticker/uek-109-LBb.git
synced 2024-11-25 02:51:58 +01:00
14 lines
300 B
Bash
14 lines
300 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
umask 0002
|
||
|
|
||
|
echo "WAITING FOR DATABASE DB_HOST = $DB_HOST"
|
||
|
./entrypoints/wait-for.sh $DB_HOST:5432
|
||
|
|
||
|
npx sequelize-cli db:create || true
|
||
|
npx sequelize-cli db:migrate --migrations-path src/migrations || true
|
||
|
npx sequelize-cli db:seed:all --seeders-path src/seeders || true
|
||
|
|
||
|
exec "$@"
|