Skip to content

Commit 3ed5c4d

Browse files
author
Ali Bellamine
committed
Fix issue with SQlite connection
Signed-off-by: Ali Bellamine <[email protected]>
1 parent 280125c commit 3ed5c4d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

deployments/docker-entrypoint.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@ if [[ "$#" -gt 0 ]]; then
77
exit $?
88
fi
99

10+
1011
# check database and redis is ready
11-
pcheck -env CMD_DB_URL
12+
if [[ $CMD_DB_URL != "sqlite"* ]] ;
13+
then
14+
pcheck -env CMD_DB_URL
15+
fi
16+
17+
# Install sqlite3 if required
18+
if [[ $CMD_DB_URL == "sqlite"* ]] ;
19+
then
20+
npm install sqlite3
21+
fi
1222

1323
# run DB migrate
1424
NEED_MIGRATE=${CMD_AUTO_MIGRATE:=true}

0 commit comments

Comments
 (0)