Vantage is a React + TypeScript + Vite frontend.
npm install
npm run devnpm run buildThe production files are generated in dist/.
This project is set up to run in Docker on the VPS, with Nginx reverse proxying
requests to the container on 127.0.0.1:8000.
This app expects Vite environment variables at build time. On the VPS, those
values are read from docker.env and used by GitHub Actions while building the
Docker image.
This repository includes a workflow that builds the Docker image in GitHub Actions, pushes it to GitHub Container Registry, then tells the VPS to pull the latest image and restart the container.
Add these GitHub repository secrets before using it:
VPS_HOST: your server IP or hostnameVPS_USER: the SSH user GitHub Actions should log in asVPS_SSH_KEY: the private SSH key for that userVPS_PORT: optional SSH port, usually22VPS_APP_DIR: the app directory on the server, for example/home/aashishvinu/vantageGHCR_USER: the GitHub username that can read the packageGHCR_PAT: a GitHub personal access token with package read access
Typical VPS_APP_DIR example:
/home/aashishvinu/vantage
Your docker.env file should stay on the VPS inside that directory and include:
VITE_SUPABASE_URLVITE_SUPABASE_ANON_KEYVITE_GOOGLE_MAPS_API_KEYVITE_RADAR_PUBLISHABLE_KEY
If you only want production deploys from one branch, update
.github/workflows/deploy.yml and keep only that branch under on.push.branches.