- Pulling the new Docker images (Web and Worker).
- Applying Prisma database migrations.
Performing an Upgrade
Use the following sequence to safely upgrade your environment.Back up your database
Always perform a full
pg_dump of your production database before applying any application updates.Pull the latest code
If building from source, pull the latest changes from the upstream
main branch.Automatic Database Migrations
You generally do not need to run database migrations manually. The Corgtex Dockerfiles use anentrypoint.sh script that automatically runs npx prisma migrate deploy before starting the Next.js server or the Node worker.
This ensures that the database schema is strictly synchronized with the application code booting up in the container. If a migration fails, the container boot sequence will abort, protecting your database state.