StudyStudio
Custom Server Environment

Overview

Deploy StudyStudio to your own server

Please follow the guide in the provided order.

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.

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.

On this page