1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 06:18:42 +03:00

Simplify app hub deploy README to two cp commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-05-25 07:37:26 +02:00
parent d5ff009192
commit 92582c31fb

View File

@@ -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.