From d214b95a87975cbf1264d64695e7617fa6cef3ab Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 2 Sep 2024 00:43:13 +0200 Subject: [PATCH] Fixes to update script --- scripts/osm2pgsql/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/osm2pgsql/update.sh b/scripts/osm2pgsql/update.sh index 601d490cdd..dd5cf29f40 100755 --- a/scripts/osm2pgsql/update.sh +++ b/scripts/osm2pgsql/update.sh @@ -20,7 +20,10 @@ osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql # To see the progress # tail -f seeddb.log +cd ~/git/MapComplete || exit npm run delete:database:old +nohup npm run server:summary >> summary_server.log & +cd - || exit # Restart tileserver export DATABASE_URL=postgresql://user:password@localhost:5444/osm-poi.${DATE}