Scripts: attempt to get script working

This commit is contained in:
Pieter Vander Vennet 2025-03-29 02:25:56 +01:00
parent ac64cc82b0
commit 17d7c82d90

View file

@ -19,7 +19,7 @@ jobs:
- name: Init all dependencies and layers
shell: bash
run: npm run init
run: npm ci && npm run init
- name: Create export script
shell: bash
@ -35,7 +35,7 @@ jobs:
DATE=$(echo $TIMESTAMP | sed "s/T.*//")
echo $DATE
# Create a new database in postgres
vite-node scripts/osm2pgsql/createNewDatabase.ts -- $DATE
npm run create:database -- -- $DATE
echo "Seeding database '$DATE'"
osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql://user:password@localhost:5444/osm-poi.${DATE} /data/planet-latest.osm.pbf
npm run delete:database:old