From 92582c31fb8e86115d9467e1a94eda4ad9082f6e Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Mon, 25 May 2026 07:37:26 +0200 Subject: [PATCH] Simplify app hub deploy README to two cp commands. Co-authored-by: Cursor --- examples/app_hub/README.md | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/examples/app_hub/README.md b/examples/app_hub/README.md index 5e90663..efbf3d7 100644 --- a/examples/app_hub/README.md +++ b/examples/app_hub/README.md @@ -1,31 +1,12 @@ -# Android Cast project hub (static landing) +# Project hub (`/app/androidcast_project/`) -Served at `https://apps.f0xx.org/app/androidcast_project/` — three links to reports, git, and tickets. - -## Deploy (BE VM) - -After `git pull` on the server tree, copy two files next to `crashes/` (not inside PHP public): +Two static files. Copy from git to the VM: ```bash -HUB=/var/www/localhost/htdocs/apps/app/androidcast_project -SRC=.../android_cast/examples/app_hub # adjust to your clone path - -cp "$SRC/index.html" "$HUB/index.html" -cp "$SRC/hub.css" "$HUB/hub.css" +cp examples/app_hub/index.html /var/www/localhost/htdocs/apps/app/androidcast_project/ +cp examples/app_hub/hub.css /var/www/localhost/htdocs/apps/app/androidcast_project/ ``` -Update nginx: replace the redirect on `/app/androidcast_project/` with static `alias` (see `examples/crash_reporter/backend/nginx.apps.conf.fragment`). Then: +One-time: stop nginx redirecting `/app/androidcast_project/` to crashes — use the two `location =` blocks in `examples/crash_reporter/backend/nginx.apps.conf.fragment`, then `nginx -t && reload`. -```bash -nginx -t && rc-service nginx reload # or your reload command -``` - -No PHP-FPM or database steps. Crash console CSS is loaded from `/app/androidcast_project/crashes/assets/css/app.css` (existing nginx alias). - -## Local preview - -```bash -cd examples/app_hub -php -S 127.0.0.1:8765 -# open http://127.0.0.1:8765/ — icons/CSS need crashes assets or adjust hrefs -``` +That's it.