Skip to content

Commit

Permalink
Merge pull request #16 from digital-land/eveleighoj-patch-1
Browse files Browse the repository at this point in the history
Update startup.sh
  • Loading branch information
eveleighoj authored Jul 16, 2024
2 parents d04d8a3 + 62e0c2c commit a51680f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
DATASETTE_PID=0

start_datasette() {
DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/entity.sqlite3 --immutable=/mnt/datasets/digital-land.sqlite3 "
DATASETTE_SERVE_ARGS="-h 0.0.0.0 -p $PORT --setting sql_time_limit_ms 10000 --nolock --immutable=/mnt/datasets/digital-land.sqlite3 "

for KEY in $(jq -rc 'keys[]' /mnt/datasets/inspect-data-all.json); do
DATASETTE_SERVE_ARGS+="--immutable=/mnt/datasets/$KEY.sqlite3 "
DATASETTE_SERVE_ARGS+="--immutable=/mnt/datasets/$KEY.sqlite3 ";
done

echo "Found datasets for datasette $(jq -c 'keys | flatten' /mnt/datasets/inspect-data-all.json)"
Expand Down

0 comments on commit a51680f

Please sign in to comment.