Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2025-12-21 15:21:24 +00:00
parent 31ba329089
commit 9552496393
25 changed files with 20 additions and 20 deletions
+3 -5
View File
@@ -1,9 +1,8 @@
#!/bin/sh
DEFAULT_PORT=16601
PORT_FILE="/app/conf/port"
PORT_FILE="/goodluck/port"
WAIT_SECONDS=30
DELAY_AFTER_PORT_UP=5
if [ -f "$PORT_FILE" ]; then
DETECT_PORT=$(cat "$PORT_FILE")
@@ -13,7 +12,7 @@ else
echo "No previous port found, using default port: ${DETECT_PORT}"
fi
/app/lucky -c /app/conf/lucky.conf -runInDocker &
/app/lucky -c /goodluck/lucky.conf -runInDocker &
MAIN_PID=$!
echo "Lucky main started with PID $MAIN_PID"
@@ -31,8 +30,7 @@ while ! nc -z 127.0.0.1 "${DETECT_PORT}" 2>/dev/null; do
done
if nc -z 127.0.0.1 "${DETECT_PORT}" 2>/dev/null; then
echo "Port ${DETECT_PORT} is up. Waiting extra ${DELAY_AFTER_PORT_UP}s..."
sleep ${DELAY_AFTER_PORT_UP}
echo "Port ${DETECT_PORT} is up."
else
echo "Port ${DETECT_PORT} still not open, continuing anyway."
fi