Skip to content

Commit

Permalink
mod: entrypoint for docker to setup db even in server with less memory
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpiritMan committed Jun 11, 2024
1 parent ff1bca1 commit 577875e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/twenty-docker/twenty/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "${ENABLE_DB_MIGRATIONS}" = "true" ] && [ ! -f /app/${STORAGE_LOCAL_PATH:-.
echo "Running database setup and migrations..."

# Run setup and migration scripts
npx ts-node ./scripts/setup-db.ts
NODE_OPTIONS="--max-old-space-size=8192" npx ts-node ./scripts/setup-db.ts
yarn database:migrate:prod

# Mark initialization as done
Expand Down

0 comments on commit 577875e

Please sign in to comment.