Primary deployment method for all games.
Serves static files directly from the host nginx at:
https://roger-us02.clawln.net/games/{game-name}/
nginx is already running on this host with a valid SSL cert for roger-us02.clawln.net.
The /games/ location block is configured to serve files from /data/games/.
Deploying a game = copying files + reloading nginx. No external service needed.
Location block in /etc/nginx/conf.d/roger-us02.clawln.net.conf:
nginx
location /games/ {
alias /data/games/;
index index.html;
try_files $uri $uri/ $uri/index.html =404;
}
bash
# 1. Copy build files
mkdir -p /data/games/{game-name}
cp -r /path/to/build/* /data/games/{game-name}/
# 2. Reload nginx (no downtime)
/usr/sbin/nginx -s reload
# 3. Verify
curl -sk https://roger-us02.clawln.net/games/{game-name}/ | head -3
Same as deploy — just overwrite the files and reload:
bash
cp -r /path/to/new-build/* /data/games/{game-name}/
/usr/sbin/nginx -s reload
bash
ls /data/games/
text
https://roger-us02.clawln.net/games/
Each game lives at https://roger-us02.clawln.net/games/{game-name}/.
/usr/sbin/nginx/data/games/