Go to file
2025-11-19 00:46:08 +00:00
scripts we got pins 2025-11-18 14:33:25 -08:00
sounds OMG, it works 2025-11-17 13:01:24 -08:00
src we got pins 2025-11-18 14:33:25 -08:00
.gitignore this work? 2025-11-17 13:50:59 -08:00
bun.lock Initial commit 2025-11-17 10:54:37 -08:00
CLAUDE.md Initial commit 2025-11-17 10:54:37 -08:00
package.json Initial commit 2025-11-17 10:54:37 -08:00
README.md we got pins 2025-11-18 14:33:25 -08:00
test.ts we got pins 2025-11-18 14:33:25 -08:00
tsconfig.json Initial commit 2025-11-17 10:54:37 -08:00

Deployment Script

This directory contains a deployment script for the 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: phone.local
  • Target Directory: /home/corey/phone

What It Does

  1. Creates directory on the Pi at the configured path
  2. Copies files from local pi/ directory to the Pi
  3. Sets permissions to make all TypeScript files executable
  4. Bootstrap (optional): If --bootstrap flag is passed, runs bootstrap.ts on the Pi with sudo
  5. 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

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 service
  • phone-web.service - Web interface service

Access

After deployment, the Pi is accessible at:

Requirements

  • Bun runtime
  • SSH access to phone.local
  • Local pi/ directory with files to deploy