Setup Server for Deployment

  1. Initialize the VPS (one-time, as root):

    gon server:setup 142.93.174.86 \
    --alias=vps1 \
    --email=ssl@example.com \
    --ghcr-token=ghp_xxxxx

    Installs Docker, creates deploy user, starts Traefik.

  2. Add your project to the server:

    gon server:add-project myapp \
    --host=vps1 \
    --domain=myapp.example.com

    Creates MySQL database, nginx vhost, SSL certificate, Docker config.

  3. Optional — enable basic auth for staging:

    gon server:auth myapp --enable

The server is now ready for gon deploy.