- Docs
- Containers
- API
- Operations
- Runbook
API runbook¶
Deploy / rollback¶
See deployment.md. Deploy only tagged vX.Y.Z; run tests first.
Cache clear¶
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan event:cache
php artisan view:cache
Reverb restart¶
sudo systemctl restart tyteride-reverb.service
sudo systemctl status tyteride-reverb.service
Queue and scheduler¶
sudo systemctl restart tyteride-queue.service
sudo systemctl restart tyteride-scheduler.timer
sudo systemctl status tyteride-queue.service
sudo systemctl status tyteride-scheduler.timer
Log locations¶
- Laravel:
storage/logs/laravel.log - Reverb: journal (
journalctl -u tyteride-reverb.service) - OpenLiteSpeed:
/usr/local/lsws/logs/(verify on host) - MariaDB: host log path (verify on host)
Fake OTP retrieval¶
With SMS_DRIVER=log and SMS_LOG_OTP_IN_PRODUCTION=true, OTPs are written to storage/logs/laravel.log. Temporary only.
Common failures¶
| Symptom | Check |
|---|---|
| 401 on API | Sanctum token / SANCTUM_STATEFUL_DOMAINS; auth middleware. |
| 500 | storage/logs/laravel.log; run optimize:clear; check DB/Redis. |
| Reverb down | unit status; port 8080; OpenLiteSpeed /app/ proxy; Redis. |
| DB/Redis errors | MariaDB service; Redis 127.0.0.1:6379; .env DB_/REDIS_. |
| Disk full | storage/, logs; prune old logs. |
| Broadcast 401 | expected without auth; verify with valid Sanctum token. |
| Stale config | rebuild caches: optimize:clear then config/route/event/view cache. |
| Migration failure | check DB credentials; run php artisan migrate --force again. |
Health checks¶
GET /api/health→{"status":"ok"}.POST /api/broadcasting/auth→ 401 without auth.- Reverb unit active and listening on
127.0.0.1:8080.