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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user