Skip to content

Shift from vt map to vt

Jin Igarashi edited this page Aug 10, 2020 · 3 revisions

Shift from vt-map to vt

Install vt

launch git bash because we want to use terminal.

cd C:\docker
git clone [email protected]:narwassco/vt.git
cd vt
echo "db_user=postgres" >> .env
echo "db_password="{put database password}" >> .env
docker pull narwassco/vt:v0.0.1

Change Task Scheduler setting

  1. Change batch file path from vt-map\create_vt.bat to vt\create_vt.bat.
  2. Enable task to launch batch file frequently (we disabled the task last time).

Run the Task manually from task scheduler

Once status of task became ready, check the condition of Github Action from here. It will be okay if Github Action succeeded to build and deploy.

Merge pull request

We need to change URL from vt-map to vt.

Merge the bellow pull requests.

Once narwassco/mapbox-gl-js-client's PR merged into master branch, Github Action will automatically build and deploy the web application.

Check the condition of Github Action from here.

Check the website

Access to https://narok.water-gis.com to check everything working well. You can open developer mode of chrome (press F12) to make sure tile's url was changed from vt-map to vt.

Delete unnecessary repository and Docker Image

We can delete unnecessary repository and docker image in order to save disk space on your computer.

launch git bash.

cd C:\docker
ll
rm -rf postgis2geojson
rm -rf vt-map
docker image ls
# check ID of docker image for vt-map and postgis2geojson which we installed before
docker image rm {image ID}. # repeat this until we delete all.

new vt tool doesn't also require Nodejs. We can uninstall Nodejs from Windows.

DONE!!