mirror of
git://f0xx.org/android_cast
synced 2026-07-29 08:37:37 +03:00
Simplify app hub deploy README to two cp commands.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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.
|
Two static files. Copy from git to the VM:
|
||||||
|
|
||||||
## Deploy (BE VM)
|
|
||||||
|
|
||||||
After `git pull` on the server tree, copy two files next to `crashes/` (not inside PHP public):
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
HUB=/var/www/localhost/htdocs/apps/app/androidcast_project
|
cp examples/app_hub/index.html /var/www/localhost/htdocs/apps/app/androidcast_project/
|
||||||
SRC=.../android_cast/examples/app_hub # adjust to your clone path
|
cp examples/app_hub/hub.css /var/www/localhost/htdocs/apps/app/androidcast_project/
|
||||||
|
|
||||||
cp "$SRC/index.html" "$HUB/index.html"
|
|
||||||
cp "$SRC/hub.css" "$HUB/hub.css"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
That's it.
|
||||||
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
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user