RayMelius Claude Opus 4.6 commited on
Commit
1a2d125
·
1 Parent(s): 9209065

Fix HF Spaces: create /app/data dir for matcher.db after shared_data merge

Browse files

The old COPY shared_data/ lines implicitly created /app/data/. After
merging into shared/data, the matcher crashed on startup because
/app/data/ no longer existed for matcher.db.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (3) hide show
  1. .gitignore +1 -1
  2. Dockerfile +1 -0
  3. entrypoint.sh +1 -1
.gitignore CHANGED
@@ -24,7 +24,7 @@ fix_oeg/store/
24
  logs/
25
 
26
  # Runtime state
27
- shared_data/order_id.txt
28
 
29
  # SQLite databases
30
  *.db
 
24
  logs/
25
 
26
  # Runtime state
27
+ shared/data/order_id.txt
28
 
29
  # SQLite databases
30
  *.db
Dockerfile CHANGED
@@ -46,6 +46,7 @@ RUN pip install --no-cache-dir \
46
  WORKDIR /app
47
 
48
  COPY shared/ /app/shared/
 
49
  # Also expose schedule path via env so dashboard finds it
50
  ENV SCHEDULE_FILE=/app/shared/data/market_schedule.txt
51
 
 
46
  WORKDIR /app
47
 
48
  COPY shared/ /app/shared/
49
+ RUN mkdir -p /app/data
50
  # Also expose schedule path via env so dashboard finds it
51
  ENV SCHEDULE_FILE=/app/shared/data/market_schedule.txt
52
 
entrypoint.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- STOCKEX_VERSION="2.0.1"
5
  echo "===== StockEx v${STOCKEX_VERSION} — Application Startup at $(date '+%Y-%m-%d %H:%M:%S') ====="
6
 
7
  KAFKA_DIR=/opt/kafka
 
1
  #!/bin/bash
2
  set -e
3
 
4
+ STOCKEX_VERSION="2.3.0"
5
  echo "===== StockEx v${STOCKEX_VERSION} — Application Startup at $(date '+%Y-%m-%d %H:%M:%S') ====="
6
 
7
  KAFKA_DIR=/opt/kafka