We've outgrown the run-everything-on-one-machine setup. This change moves background jobs to a different Docker image in production. It also adds a `jobKey` to certain jobs so if we try to process the same cell multiple times it'll only actually run the job once.
14 lines
198 B
Bash
Executable File
14 lines
198 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Migrating the database"
|
|
pnpm prisma migrate deploy
|
|
|
|
echo "Migrating promptConstructors"
|
|
pnpm tsx src/promptConstructor/migrate.ts
|
|
|
|
echo "Starting the server"
|
|
|
|
pnpm start
|