phone/README.md
2025-11-18 16:48:03 -08:00

1.5 KiB

Deployment Script

This directory contains a deployment script for the Yellow Phone project to a Raspberry Pi.

File: deploy.ts

A Bun-based deployment script that automates copying files to a Raspberry Pi and managing systemd services.

Configuration

  • Target Host: yellow-phone.local
  • Target Directory: /home/corey/yellow-phone

What It Does

  1. Copies files from here to the pi (in ~/phone by default)
  2. Bootstrap (optional): If --bootstrap flag is passed it will bootstrap the pi with everything it needs
  3. Service management:
    • Checks if phone-ap.service and phone-web.service exist
    • If they exist, restarts both services
    • If they don't exist and bootstrap wasn't run, warns the user

Usage

<<<<<<< Updated upstream Standard deployment (just copy files and restart services):

bun deploy.ts

First-time deployment (copy files + run bootstrap):

bun deploy.ts --bootstrap
=======
```bash
bun scripts/deploy.ts
# or bun deploy.ts --bootstrap
>>>>>>> Stashed changes

Services

The script manages two systemd services:

  • phone-ap.service - Access point service
  • phone-web.service - Web interface service

Access

After deployment, the Pi is accessible at:

Local Requirements

  • Bun runtime <<<<<<< Updated upstream
  • SSH access to yellow-phone.local
  • Local pi/ directory with files to deploy =======
  • SSH access to phone.local

Stashed changes