Compare commits
2 Commits
688e821fcb
...
c9a5658fc8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9a5658fc8 | ||
|
|
fee687d550 |
37
tools/deploy_hardyards.sh
Executable file
37
tools/deploy_hardyards.sh
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Deploy HARD YARDS to partly.party/hardyards (games VPS, forum-nginx).
|
||||||
|
# Pattern per ~/.claude/skills/deploy-map: bundle -> /tmp staging -> docker cp
|
||||||
|
# -> curl verify. The bundle is web/ ONLY — never docs/, THREADS.md, or tools/
|
||||||
|
# (they carry fleet detail that has no business on a public host).
|
||||||
|
set -eu
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
VPS=humanjing@100.71.119.27
|
||||||
|
ROOT=/usr/share/nginx/html/hardyards
|
||||||
|
|
||||||
|
# Redirect index so partly.party/hardyards/ lands on the game.
|
||||||
|
STAGE=$(mktemp -d)
|
||||||
|
cat > "$STAGE/index.html" << 'HTML'
|
||||||
|
<!doctype html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>HARD YARDS</title>
|
||||||
|
<meta http-equiv="refresh" content="0; url=world/index.html">
|
||||||
|
<a href="world/index.html">HARD YARDS — rig it, then survive the night</a>
|
||||||
|
HTML
|
||||||
|
|
||||||
|
rsync -a --delete web/ "$VPS":/tmp/hardyards-stage/
|
||||||
|
rsync -a "$STAGE/index.html" "$VPS":/tmp/hardyards-stage/index.html
|
||||||
|
rm -rf "$STAGE"
|
||||||
|
ssh "$VPS" "docker exec forum-nginx rm -rf $ROOT \
|
||||||
|
&& docker cp /tmp/hardyards-stage forum-nginx:$ROOT"
|
||||||
|
|
||||||
|
# Verify with our own eyes (cache-busted; Cloudflare fronts partly.party).
|
||||||
|
CB=$(date +%s)
|
||||||
|
for p in "?cb=$CB" "world/index.html?cb=$CB" \
|
||||||
|
"world/data/sites/backyard_01.json?cb=$CB" \
|
||||||
|
"world/vendor/three.module.js?cb=$CB"; do
|
||||||
|
code=$(curl -s -o /dev/null -w '%{http_code}' "https://partly.party/hardyards/$p")
|
||||||
|
echo "$code /hardyards/$p"
|
||||||
|
[ "$code" = 200 ] || { echo "NOT DEPLOYED: $p returned $code" >&2; exit 1; }
|
||||||
|
done
|
||||||
|
echo "deployed: https://partly.party/hardyards/"
|
||||||
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<title>SHADES — rig it, then survive the night</title>
|
<title>HARD YARDS — rig it, then survive the night</title>
|
||||||
<style>
|
<style>
|
||||||
html, body { margin: 0; height: 100%; overflow: hidden; background: #9fc4dd; }
|
html, body { margin: 0; height: 100%; overflow: hidden; background: #9fc4dd; }
|
||||||
canvas { display: block; width: 100%; height: 100%; }
|
canvas { display: block; width: 100%; height: 100%; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user