new script to run workers

This commit is contained in:
Kyle Corbitt
2023-08-18 13:01:01 -07:00
parent 1b394cc72b
commit 9b1f2ac30a
7 changed files with 31 additions and 12 deletions

10
app/scripts/run-workers-prod.sh Executable file
View File

@@ -0,0 +1,10 @@
#! /bin/bash
set -e
echo "Migrating the database"
pnpm prisma migrate deploy
echo "Starting 4 workers"
pnpm concurrently "pnpm worker" "pnpm worker" "pnpm worker" "pnpm worker"