Test update script
This commit is contained in:
parent
31629b94b8
commit
277d3d0754
1 changed files with 2 additions and 2 deletions
|
@ -8,14 +8,14 @@ mv build_db.lua ~/data/
|
||||||
TIMESTAMP=$(osmium fileinfo ~/data/planet-latest.osm.pbf -g header.option.timestamp)
|
TIMESTAMP=$(osmium fileinfo ~/data/planet-latest.osm.pbf -g header.option.timestamp)
|
||||||
DATE=$(echo $TIMESTAMP | sed "s/T.*//")
|
DATE=$(echo $TIMESTAMP | sed "s/T.*//")
|
||||||
echo $DATE
|
echo $DATE
|
||||||
npm run create:database -- ${DATE/T.*//}
|
npm run create:database -- -- ${DATE/T.*//}
|
||||||
|
|
||||||
cd ~/data || exit
|
cd ~/data || exit
|
||||||
rm planet-latest.osm.pbf
|
rm planet-latest.osm.pbf
|
||||||
wget https://planet.osm.org/pbf/planet-latest.osm.pbf
|
wget https://planet.osm.org/pbf/planet-latest.osm.pbf
|
||||||
|
|
||||||
rm seeddb.log
|
rm seeddb.log
|
||||||
nohup osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql://user:password@localhost:5444/osm-poi planet-latest.osm.pbf >> seeddb.log
|
osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql://user:password@localhost:5444/osm-poi planet-latest.osm.pbf >> seeddb.log
|
||||||
|
|
||||||
# To see the progress
|
# To see the progress
|
||||||
# tail -f seeddb.log
|
# tail -f seeddb.log
|
||||||
|
|
Loading…
Reference in a new issue