Spaces:
Paused
Paused
File size: 369 Bytes
725472c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh
set -e
echo "=== 启动 hf-framework ==="
for module in /modules/*/; do
name=$(basename "$module")
if [ -f "${module}start.sh" ]; then
echo "启动模块: $name"
(cd "$module" && sh start.sh) &
fi
done
echo "等待模块就绪..."
sleep 2
echo "启动 Caddy..."
exec caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
|