Skip to content

Commit

Permalink
chore(Docker, k8s): create app directory path before database is created
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Jul 26, 2024
1 parent b6f0031 commit 53bdec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/docker-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# This is the entry point for Docker container
# to run the DB migrations before starting the app

# Ensure the data directory exists. This is where the SQLite database will be stored
mkdir -p /app/data

# Run database migrations
/app/node_modules/prisma/build/index.js migrate deploy --schema /app/packages/prisma/src/schema.prisma

Expand Down

0 comments on commit 53bdec9

Please sign in to comment.