mirror of
git://f0xx.org/android_cast
synced 2026-07-29 03:38:52 +03:00
sync
This commit is contained in:
@@ -86,12 +86,16 @@ Direct debug ports: crashes `:8082`, builder `:8083`.
|
||||
|-----|------------------|
|
||||
| `build.repo_root` | `/var/www/.../androidcast_project/android_cast` (git tree) |
|
||||
| `build.artifacts_root` | `/var/www/.../androidcast_project/out/builds` — **must exist**, writable by PHP-FPM (`nginx`) |
|
||||
| `build.ota_mount` | `/var/www/.../androidcast_project/ota-artifacts` — nginx serves `…/v0/ota/` at `/v0/ota/` |
|
||||
| `build.runner_script` | full path to `scripts/docker-build-runner.sh` (no `...` placeholders) |
|
||||
|
||||
```sh
|
||||
mkdir -p .../out/builds .../ota-artifacts
|
||||
chown -R nginx:nginx .../out
|
||||
chmod -R 775 .../out
|
||||
sudo examples/crash_reporter/backend/scripts/prepare-be-ota-mount.sh
|
||||
mkdir -p .../out/builds
|
||||
chown -R nginx:nginx .../out .../ota-artifacts
|
||||
chmod -R 775 .../out .../ota-artifacts
|
||||
```
|
||||
|
||||
Apply nginx OTA block: `nginx.apps-port80.fragment` (`location ^~ /v0/ota/`), then `nginx -t && rc-service nginx reload` on BE.
|
||||
|
||||
If **Start build** shows *Network error*, check BE `php-fpm81` log: often `mkdir(): Permission denied` on `out/builds` (HTTP 500, not a browser network fault).
|
||||
|
||||
@@ -116,6 +116,7 @@ Web root prefix:
|
||||
|------------|------|
|
||||
| `.../androidcast_project/android_cast/` | Full git tree (crash backend, app sources) |
|
||||
| `.../androidcast_project/index.html` | `examples/app_hub/index.html` (copy or symlink) |
|
||||
| `.../androidcast_project/ota-artifacts/v0/` | OTA publish tree (`/v0/ota/` on public URL) |
|
||||
| `.../android_cast/examples/crash_reporter/backend/public/` | PHP document root for crashes |
|
||||
|
||||
`config.php` **`base_path`** must be exactly:
|
||||
|
||||
Reference in New Issue
Block a user