- add custom entry point
This commit is contained in:
parent
e18ad7ebca
commit
94ccd14689
1 changed files with 11 additions and 0 deletions
11
entrypoint.sh
Executable file
11
entrypoint.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
if [ "x$INIT_DB" = "xtrue" ]; then
|
||||||
|
echo "Initializing database...";
|
||||||
|
npm install drizzle-kit
|
||||||
|
sleep 10;
|
||||||
|
npx drizzle-kit migrate --config=drizzle-init.js
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Starting server..."
|
||||||
|
exec node index.js
|
Loading…
Add table
Reference in a new issue