Gather data

This commit is contained in:
mike
2026-01-04 01:37:42 +01:00
parent 795067472f
commit 3e25ce3e1f
22 changed files with 233 additions and 1414 deletions

View File

@@ -8,12 +8,14 @@ echo "Puzzles per day: ${PUZZLES_PER_DAY}"
echo ""
# Ensure output directory exists
mkdir -p "${OUT_DIR}"
mkdir -p "${OUT_DIR}/puzzles"
# Generate initial puzzle on startup (optional)
if [ "${GENERATE_ON_START}" = "true" ]; then
echo "Generating initial puzzles..."
java -cp /app/target puzzle.DailyGenerator
START_CLASS=${START_CLASS:-puzzle.Main}
echo "Running ${START_CLASS}..."
java -cp /app/target/postgresql-42.7.8.jar:/app/target ${START_CLASS}
echo ""
fi