BPEL Bot commited on
Commit
e30049f
·
1 Parent(s): 22c56e9

Ensure sqlite compatibility file exists

Browse files
Files changed (1) hide show
  1. docker-entrypoint.sh +5 -0
docker-entrypoint.sh CHANGED
@@ -44,4 +44,9 @@ export DATABASE_URL="$DB_URL"
44
  PORT="${PORT:-8000}"
45
  log "Starting oTree prodserver on 0.0.0.0:${PORT}"
46
  cd /app
 
 
 
 
 
47
  exec otree prodserver1of2 0.0.0.0:${PORT}
 
44
  PORT="${PORT:-8000}"
45
  log "Starting oTree prodserver on 0.0.0.0:${PORT}"
46
  cd /app
47
+ log "Creating compatibility SQLite file at $(pwd)/db.sqlite3"
48
+ python - <<'PY'
49
+ import sqlite3
50
+ sqlite3.connect('db.sqlite3').close()
51
+ PY
52
  exec otree prodserver1of2 0.0.0.0:${PORT}