Switch package manager and runtime from Node.js/npm to Bun across Docker, CI, and scripts. The SQLite driver remains better-sqlite3 due to Next.js Turbopack being unable to resolve bun:sqlite during build-time page pre-rendering. Also fix the world map not rendering in the analytics page — the overflowX wrapper added for mobile broke the flex height chain, collapsing the map to 0px. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
245 B
Bash
12 lines
245 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
DB_PATH="${DATABASE_PATH:-/app/data/caddy-proxy-manager.db}"
|
|
DB_DIR=$(dirname "$DB_PATH")
|
|
|
|
echo "Ensuring database directory exists..."
|
|
mkdir -p "$DB_DIR"
|
|
|
|
echo "Starting application..."
|
|
exec env HOSTNAME=0.0.0.0 bun server.js
|