Skip to content

Commit

Permalink
Fix issue with SQlite connection
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Bellamine <[email protected]>
  • Loading branch information
Ali Bellamine committed Aug 8, 2024
1 parent 280125c commit 3ed5c4d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion deployments/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@ if [[ "$#" -gt 0 ]]; then
exit $?
fi


# check database and redis is ready
pcheck -env CMD_DB_URL
if [[ $CMD_DB_URL != "sqlite"* ]] ;
then
pcheck -env CMD_DB_URL
fi

# Install sqlite3 if required
if [[ $CMD_DB_URL == "sqlite"* ]] ;
then
npm install sqlite3
fi

# run DB migrate
NEED_MIGRATE=${CMD_AUTO_MIGRATE:=true}
Expand Down

0 comments on commit 3ed5c4d

Please sign in to comment.