Overview
Deploy StudyStudio to your own server
This section will guide you through deploying StudyStudio on your own server, whether it is a VPS, dedicated server, or any Linux based hosting environment. The Next.js app runs behind PM2 and Nginx while Convex Cloud still powers the database and backend.
Getting Started
Install Node.js, pnpm, Nginx, and configure your server
Environment Variables
Add all production keys and secrets to your .env file
Convex Database
Point the app at your Convex deployment
Authentication
Production auth setup on your own server
Google Gemini
Production AI keys
Resend
Production email delivery
Payment Gateways
Configure live payment credentials
Deploy
Build with pnpm, run with PM2, and proxy with Nginx
Setup at a Glance
Prepare the server
Install Node.js, pnpm, Nginx, and any required build tools on your server.
Add environment variables
Add all production keys and secrets to your .env file.
Deploy Convex
Run npx convex deploy to push your schema, queries, mutations, and
actions.
Build and serve
Build with pnpm build, run with PM2, and proxy with Nginx.
Go live
Add SSL with Certbot and verify your live application.