|
|
||
|---|---|---|
| scripts | ||
| sounds | ||
| src | ||
| .gitignore | ||
| basic-test.ts | ||
| bun.lock | ||
| CLAUDE.md | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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
- Creates directory on the Pi at the configured path
- Copies files from local
pi/directory to the Pi - Sets permissions to make all TypeScript files executable
- Bootstrap (optional): If
--bootstrapflag is passed, runsbootstrap.tson the Pi with sudo - Service management:
- Checks if
phone-ap.serviceandphone-web.serviceexist - If they exist, restarts both services
- If they don't exist and bootstrap wasn't run, warns the user
- Checks if
Usage
Standard deployment (just copy files and restart services):
bun deploy.ts
First-time deployment (copy files + run bootstrap):
bun deploy.ts --bootstrap
Services
The script manages two systemd services:
phone-ap.service- Access point servicephone-web.service- Web interface service
Access
After deployment, the Pi is accessible at:
- Web URL: http://yellow-phone.local
- WiFi Network: yellow-phone-setup
Requirements
- Bun runtime
- SSH access to
yellow-phone.local - Local
pi/directory with files to deploy