Skip to content

Deployment

The Grit Web SDK (frontend) deploys together with the backend as a unified application. There is no separate deployment process for the frontend.

How to Deploy

To deploy the frontend along with the backend, follow the Grit One SDK Deployment Guide.

The deployment commands handle both frontend and backend:

# Build the Docker image (includes frontend build)
python scripts.py build_image

# Deploy to production
python scripts.py deploy

What Happens During Deployment

When you run the deployment commands:

  1. The frontend assets are built using Vite (npm run build)
  2. The built assets are included in the Docker image
  3. The unified application is deployed to the production environment

Local Development

For local frontend development, see the Getting Started section in the Overview.

cd frontend
npm install
npm run dev

The local Vite dev server runs alongside the Django backend during development.