Move runtime artifacts out of the source tree to ~/trips

The dev directory now holds source code + compiled binaries only:
  ~/trips/osm/          OSM PBF extracts (was osm/, 1.4 GB)
  ~/trips/tilecache/    mock tile cache (was mock/.tilecache)
  ~/trips/store/mock/   per-trip uploads + chat logs (was mock/store, PII)
  ~/trips/logs/         server.log
  ~/trips/stale-osm-build/  stale source/tarball dup of ~/osm-build
                           (repo osm/build had no binaries; the live OSRM
                           toolchain + graphs already lived in ~/osm-build)

Code now points at the new locations, all overridable via env:
- mock/server.js: TRIPS_HOME (default ~/trips) for tile cache + store
- setup-osrm.sh / setup-osrm-colombia.sh: OSM_DIR (default ~/trips/osm)
- spatial/compose+import.sh: OSM_DIR (default ~/trips/osm)
- .gitignore: rewritten — no artifact paths remain in-tree
This commit is contained in:
gmp
2026-09-10 10:03:04 -04:00
parent c367eba5cb
commit 3da04c111e
9 changed files with 40 additions and 30 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ set -euo pipefail
cd "$(dirname "$0")"
W="${W:-$HOME/osm-build}"
OSM_DIR="$(cd ../.. && pwd)/osm"
OSM_DIR="${OSM_DIR:-$HOME/trips/osm}" # raw PBFs live outside the dev tree
mkdir -p "$OSM_DIR"
DATA_DIR="$W/data/colombia"
OSRM_BIN="$W/build"
OSRM_SRC="$W/osrm-backend-26.4.1"
+4 -2
View File
@@ -8,13 +8,15 @@
# scripts/setup-osrm.sh --no-serve # build + extract, don't serve
#
# Artifacts live in $W (default: $HOME/osm-build — durable; the extract
# is ~8 GB under $W/data). PBFs are in ../../osm/ (~1.1 GB, gitignored).
# is ~8 GB under $W/data). Raw PBFs live in ~/trips/osm (~1.1 GB; the dev
# tree holds source only — override with OSM_DIR).
set -euo pipefail
cd "$(dirname "$0")"
W="${W:-$HOME/osm-build}"
P="$W/prefix"
OSM_DIR="$(cd ../.. && pwd)/osm"
OSM_DIR="${OSM_DIR:-$HOME/trips/osm}" # raw PBFs live outside the dev tree
mkdir -p "$OSM_DIR"
DATA_DIR="${DATA_DIR:-$W/data}"
OSRM_SRC="$W/osrm-backend-26.4.1"
OSRM_BIN="$W/build"