#
prod
The prod
command is responsible for:
- Running the Next.js production server.
- Running the background worker production server.
- Running production database management commands.
All of these commands operate using the production environment configuration as defined via the environment variables.
The servers are spawned as child processes of the CLI command script, with their stdio mapping to the console.
#
Next.js
pnpm prod web
The website will be accessible at http://localhost:3000.
#
Background worker
pnpm prod worker
## Running servers simultaneously
To run both the the Next.js and background worker servers simultaneously:
pnpm prod
#
Database management
To migrate the database to the latest schema:
pnpm prod db migrate