Skip to content

Commit bcd7cad

Browse files
committed
Simplify reload data script
1 parent 098da57 commit bcd7cad

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

bin/compose-reload-data.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@ set -euxo pipefail
44
docker compose exec db bash -c 'psql -U colocus -c "DROP DATABASE core WITH (FORCE)"'
55
docker compose exec db bash /docker-entrypoint-initdb.d/init-db.sh
66
docker compose exec django bash -c 'source .venv/bin/activate && python3 manage.py migrate --database=core'
7-
docker compose exec django bash -c "
8-
source .venv/bin/activate
9-
for subdir in \$(find /data -mindepth 1 -maxdepth 1 -type d); do
10-
subdir=\"\${subdir%/}\"
11-
if [ -d \"\$subdir\" ]; then
12-
uv run python3 scripts/load_dataset.py \"\${subdir}\"
13-
fi
14-
done
15-
"
7+
docker compose exec django bash /opt/colocus/bin/entrypoint-migrate-and-load.sh

0 commit comments

Comments
 (0)