# Deploy Don’t Miss Global on a HostGator VPS

This package uses the standalone Node server and SQLite. It has no npm dependencies and needs no separate database service.

1. SSH into the VPS. Confirm Node.js 24 or newer is available to the account that will run the app. Run `node --version` and `node -e "require('node:sqlite')"` to verify the runtime and SQLite support.
2. Extract the ZIP to an application directory outside your domain’s public_html. Run the app as an unprivileged account with write access to that directory’s .data folder.
3. Create .env from .env.example. Set ADMIN_EMAIL to your studio administrator’s email, ADMIN_PASSWORD to a unique password of at least 12 characters, and DMG_ORIGIN to the exact HTTPS origin, such as https://music.example.com, with no trailing slash. Keep .env readable only by the app account.
4. Run `node --env-file-if-exists=.env local.mjs` as the app account. The process listens on 127.0.0.1:4173 by default. Configure your VPS service manager to run the same command with the app folder as its working directory and restart it after failures or a reboot.
5. Point your domain or subdomain to the VPS. Enable its TLS certificate and configure the HTTPS virtual host to reverse-proxy all paths to http://127.0.0.1:4173. Set the proxy request-body limit to at least 21 MiB if a smaller limit is configured. On cPanel, use a supported per-domain Apache include so a configuration rebuild preserves the change.
6. Open your HTTPS site, then sign in at /studio. Verify a track upload and playback over HTTPS. Back up .data together with uploads so the catalog and media can be restored together.
