game-village-politics-backend/scripts/e2e-edgerealm.sh

14 lines
792 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# End-to-end check of the WS API on the deployed code, without touching production data:
# a throwaway container (no network) copies the backend checkout, builds its own SQLite
# world, user, WS server and game:events worker, and runs scripts/e2e/client.mjs against
# them (join, village.show, village.build with its push, map.view). Run after a deploy.
# On Windows, put the Windows OpenSSH client first: PATH="/c/Windows/System32/OpenSSH:$PATH".
set -euo pipefail
HOST=root@static.64.40.140.128.clients.your-server.de
DIR=/mnt/HC_Volume_102040804/srv/game-village-politics-backend
IMAGE=blaxsoftware/laravel:laravel13-php8.4
ssh -o BatchMode=yes "$HOST" "docker run --rm --network none -v $DIR:/src:ro --entrypoint bash $IMAGE /src/scripts/e2e/run.sh 2>&1 | tail -25"