Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mrgnw/cv.
Something went wrong. Try again.
cv docker-start.sh
12345678910111213141516171819202122232425262728#!/bin/bash
# Start the dev server in the backgroundecho "🚀 Starting dev server..."bun run dev --host &DEV_PID=$!
# Wait a moment for the dev server to startsleep 3
# Start PDF watcherecho "👀 Starting PDF watcher..."node pdf-cli.js --watch &PDF_PID=$!
# Function to cleanup on exitcleanup() { echo "🛑 Shutting down..." kill $DEV_PID $PDF_PID 2>/dev/null exit 0}
# Trap signals to ensure cleanuptrap cleanup SIGTERM SIGINT
# Wait for either process to exitwait $DEV_PID $PDF_PID