Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.5 KB

local-map-service.md

File metadata and controls

41 lines (32 loc) · 1.5 KB

Local Map Service

CaBot launch a MapService Web server if server data exists in CABOT_SITE dir.

Limitations

  • This server can be accessed only from localhost
  • The script will use admin's default password
  • The script will create editor role account 'editor' with password 'editor'
  • Mongodb's data is stored on container disk. The data is not persistent and cleared every launch.

Start the server

./server-launch.sh -d <data_dir>

Export route data

./tools/server-data.sh -e <file>

Server data files

- CABOT_SITE/                     # CABOT_SITE is an identical directory name under ./cabot_sites dir
  |
  |- server_data/
  | |
  | |- MapData.geojson             # exported route data (editor.jsp)
  | |- attachments                 # unzip exported attachments.zip file (admin.jsp) into this dir
  | |- server.env                  # server environment variables
  |
  |- config/config.yaml            # set values for localhost
              map_server_host: localhost:9090/map
	      protocol: http