Go to file
2025-11-24 09:41:49 -08:00
.vscode whatever 2025-11-20 16:16:47 -08:00
baresip YES 2025-11-23 16:03:40 -08:00
scripts ok 2025-11-24 09:09:15 -08:00
sounds whatever 2025-11-20 16:16:47 -08:00
src wip 2025-11-24 09:41:49 -08:00
.gitignore this work? 2025-11-17 13:50:59 -08:00
bun.lock whatever 2025-11-20 16:16:47 -08:00
CLAUDE.md Initial commit 2025-11-17 10:54:37 -08:00
package.json whatever 2025-11-20 16:16:47 -08:00
README.md Merge branch 'main' of 54.219.130.253:probablycorey/phone 2025-11-18 16:54:26 -08:00
tsconfig.json yes 2025-11-19 13:00:39 -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. 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

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 <<<<<<< HEAD <<<<<<< Updated upstream
  • SSH access to yellow-phone.local

  • SSH access to phone.local

    1c717a5b47

  • Local pi/ directory with files to deploy

  • SSH access to phone.local

    Stashed changes