diff --git a/CLAUDE.md b/CLAUDE.md index 4e5cbbb..2039f07 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -41,6 +41,14 @@ The `game:events` worker and the WS server run as supervisor programs in the `ap Local: `https://server-village.localhost.at` (HTTP), `wss://ws-server-village.localhost.at` (WS). +On Windows without Docker, the tests run on a user-local PHP 8.4 (the image's version) and Composer in `%LOCALAPPDATA%\Programs\php84`: `vendor/bin/pest` and `vendor/bin/pint` (SQLite in memory, per phpunit.xml). The WS server needs `pcntl`, so it only runs on Linux. + +## Deploy + +The backend runs on edgerealm at `https://server-village.blax.at` (HTTP) and `wss://ws-server-village.blax.at/app/village-politics` (WS), from `/mnt/HC_Volume_102040804/srv/game-village-politics-backend` with containers `app`, `mysql` and `redis` on the shared `web` network. `deploy.sh` runs there: pull, composer install, migrate, seed the worlds, optimize, restart the WS server and worker. The first run creates `.env` from `.env.example` with generated secrets. + +Commit and push to `origin master`, then run `scripts/deploy-edgerealm.sh`. It is done when it prints `Live: https://server-village.blax.at at `. On Windows, run it as `PATH="/c/Windows/System32/OpenSSH:$PATH" scripts/deploy-edgerealm.sh`. + ## Commits Make small commits, one concern each, with prefixes like `feat:`, `fix:`, `test:`, `docs:`, `chore:` (the same style as learn-atc). diff --git a/docs/architecture.md b/docs/architecture.md index 4c3f5f5..90026fd 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -4,7 +4,7 @@ | Repo | Stack | Local URL | |---|---|---| -| `game-village-politics` | Laravel 13, PHP 8.5 (`blaxsoftware/laravel:laravel13`), MySQL, Redis, Pest, Sanctum, blax-software/laravel-websockets | `server-village.localhost.at`, `ws-server-village.localhost.at` | +| `game-village-politics-backend` | Laravel 13, PHP 8.4 (`blaxsoftware/laravel:laravel13-php8.4`), MySQL, Redis, Pest, Sanctum, blax-software/laravel-websockets | `server-village.localhost.at`, `ws-server-village.localhost.at` | | `game-village-politics-frontend` | Nuxt 4, TypeScript, `@blax-software/networking`, `@blax-software/i18n` | `village.localhost.at` | Docker Compose and Traefik labels follow learn-atc. The `app` container runs nginx and php-fpm, plus supervisor programs for the queue worker, the scheduler, the WS server, and `game:events`.