33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
name: sansonnet-site
|
|
description: Sansonnet (sansonnet.maison / maisonsansonnet.com) — historical management office, en/fr bilingual. Dev preview at https://sansonnet.maison.apricot.lan/.
|
|
type: feature-service
|
|
category: marketing-sites
|
|
version: 0.1.0
|
|
|
|
platforms:
|
|
apricot:
|
|
os: linux
|
|
host: 10.0.0.13
|
|
environment: development
|
|
services:
|
|
dev:
|
|
type: web
|
|
port: "4322"
|
|
description: Astro dev server with HMR (live preview)
|
|
start:
|
|
path: ~/Code/@projects/@lilith/lilith-platform.live/codebase/@features/sansonnet-web/site
|
|
script: |
|
|
set -e
|
|
bun install --frozen-lockfile
|
|
nohup bun run dev --host 127.0.0.1 --port 4322 > /tmp/sansonnet-site-dev.log 2>&1 &
|
|
echo "sansonnet-site dev PID $! → logs /tmp/sansonnet-site-dev.log"
|
|
stop:
|
|
path: ~/Code/@projects/@lilith/lilith-platform.live/codebase/@features/sansonnet-web/site
|
|
script: |
|
|
pid=$(ss -ltnp 2>/dev/null | awk '/127\.0\.0\.1:4322/ {gsub(/.*pid=/,""); gsub(/,.*/,""); print; exit}')
|
|
if [ -n "$pid" ]; then kill "$pid" && echo "stopped sansonnet-site dev (pid $pid)"; else echo "not running"; fi
|
|
status:
|
|
command: "curl -sf http://127.0.0.1:4322/ > /dev/null && echo ok || echo stopped"
|
|
type: http
|
|
logs:
|
|
command: "tail -f /tmp/sansonnet-site-dev.log"
|