Skip to content

Commit

Permalink
fix(script): add times to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
fpurcell committed Mar 19, 2021
1 parent dd257a8 commit 45a9523
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/cron_load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ function check_osm_meta_data() {
}


# main: update data
# main: update data
NOW=$( date '+%F @ %H:%M:%S' )
echo "tile reload is starting ($NOW)"
rm -rf /tmp/*

cd $OMT_DIR
Expand All @@ -93,22 +95,29 @@ if [ $new == 1 ]; then
echo "step A: blow away existing GL / OMT Docker and data"
$DIR/nuke.sh ALL

echo "step B: load and create *.mbtiles in openmaptiles/data dir"
NOW=$( date '+%F @ %H:%M:%S' )
echo "step B: load and create *.mbtiles in openmaptiles/data dir ($NOW)"
update_osm_data

cd $OMT_DIR
./scripts/import.sh

echo "step C: restart and test GL with this new *.mbtiles file"
NOW=$( date '+%F @ %H:%M:%S' )
echo "step C: restart and test GL with this new *.mbtiles file ($NOW)"
cd $OMT_DIR
./scripts/mbtiles/copy.sh
./scripts/mbtiles/restart.sh

echo "step D: deploy this *.mbtiles into the GREEN/BLUE system not in production"
NOW=$( date '+%F @ %H:%M:%S' )
echo "step D: deploy this *.mbtiles into the GREEN/BLUE system not in production ($NOW)"
cd $OMT_DIR
./scripts/bolt/deploy.sh

echo "step E: test... "
NOW=$( date '+%F @ %H:%M:%S' )
echo "step E: test... ($NOW)"
cd $OMT_DIR
./scripts/test_gl_images.sh
fi

NOW=$( date '+%F @ %H:%M:%S' )
echo "tile reload is DONE ($NOW)"

0 comments on commit 45a9523

Please sign in to comment.