Skip to content

Commit

Permalink
Update startup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eveleighoj authored Jul 10, 2024
1 parent 3de69bc commit 62e0c2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +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
if [[ $KEY != 'entity' ]]; then
DATASETTE_SERVE_ARGS+="--immutable=/mnt/datasets/$KEY.sqlite3 ";
fi;
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 62e0c2c

Please sign in to comment.