CognxSafeTrack commited on
Commit
f68d61b
·
1 Parent(s): e4884cd

fix: run prisma commands using @repo /database filter

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. scripts/start-backend.sh +1 -1
Dockerfile CHANGED
@@ -15,7 +15,7 @@ COPY scripts/ scripts/
15
  RUN pnpm install
16
 
17
  # Generate Prisma Client
18
- RUN pnpm db:generate
19
 
20
  # Build the specific apps
21
  RUN pnpm --filter api build
 
15
  RUN pnpm install
16
 
17
  # Generate Prisma Client
18
+ RUN pnpm --filter @repo/database generate
19
 
20
  # Build the specific apps
21
  RUN pnpm --filter api build
scripts/start-backend.sh CHANGED
@@ -2,7 +2,7 @@
2
 
3
  # Migrate database
4
  echo "Running database migrations..."
5
- pnpm db:push
6
 
7
  # Start Worker in background
8
  echo "Starting WhatsApp Worker..."
 
2
 
3
  # Migrate database
4
  echo "Running database migrations..."
5
+ pnpm --filter @repo/database db:push
6
 
7
  # Start Worker in background
8
  echo "Starting WhatsApp Worker..."