Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2025-12-25 09:26:15 +00:00
parent c54cb2da4f
commit 6274ae74dd
16 changed files with 18 additions and 18 deletions
+5 -3
View File
@@ -1,8 +1,9 @@
#!/bin/sh
DEFAULT_PORT=16601
PORT_FILE="/goodluck/port"
PORT_FILE="/app/conf/port"
WAIT_SECONDS=30
DELAY_AFTER_PORT_UP=5
if [ -f "$PORT_FILE" ]; then
DETECT_PORT=$(cat "$PORT_FILE")
@@ -12,7 +13,7 @@ else
echo "No previous port found, using default port: ${DETECT_PORT}"
fi
/app/lucky -c /goodluck/lucky.conf -runInDocker &
/app/lucky -c /app/conf/lucky.conf -runInDocker &
MAIN_PID=$!
echo "Lucky main started with PID $MAIN_PID"
@@ -30,7 +31,8 @@ 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."
echo "Port ${DETECT_PORT} is up. Waiting extra ${DELAY_AFTER_PORT_UP}s..."
sleep ${DELAY_AFTER_PORT_UP}
else
echo "Port ${DETECT_PORT} still not open, continuing anyway."
fi