- Added detailed API endpoint information in SETUP-INSTRUCTIONS.md - Documented API usage with Ente CLI - Enhanced routing configuration for auth/cast/accounts apps - Updated to version 0.1.64
32 lines
1.0 KiB
Bash
Executable File
32 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Add this debugging section to your start.sh after line 350
|
|
|
|
# Start Caddy with more verbose logging
|
|
echo "==> Starting Caddy web server with debug logging"
|
|
echo "==> Validating Caddyfile first..."
|
|
caddy validate --config /app/data/Caddyfile --adapter caddyfile || {
|
|
echo "==> ERROR: Caddyfile validation failed!"
|
|
cat /app/data/Caddyfile
|
|
exit 1
|
|
}
|
|
|
|
echo "==> Starting Caddy..."
|
|
# Run Caddy in foreground first to see errors
|
|
timeout 10 caddy run --config /app/data/Caddyfile --adapter caddyfile 2>&1 | tee /app/data/logs/caddy-debug.log || {
|
|
echo "==> ERROR: Caddy failed to start"
|
|
echo "==> Last 50 lines of Caddy debug log:"
|
|
tail -50 /app/data/logs/caddy-debug.log
|
|
}
|
|
|
|
# Check if port is actually listening
|
|
echo "==> Checking if port 3080 is listening..."
|
|
netstat -tlnp | grep 3080 || lsof -i :3080 || {
|
|
echo "==> ERROR: Nothing listening on port 3080"
|
|
}
|
|
|
|
# Test the health endpoint
|
|
echo "==> Testing health endpoint..."
|
|
curl -v http://localhost:3080/health || {
|
|
echo "==> ERROR: Health check failed"
|
|
} |