2019-05-08 15:58:48 +03:00
|
|
|
|
|
|
|
# Building the mapserver
|
|
|
|
|
|
|
|
Instructions to build the mapserver from source
|
|
|
|
|
|
|
|
## Build dependencies
|
|
|
|
|
2020-05-29 08:03:46 +03:00
|
|
|
* go >= 1.11 (for the binary)
|
|
|
|
* rollup >= 1.x (for the embedded js/css assets)
|
2019-05-08 15:58:48 +03:00
|
|
|
|
|
|
|
Ubuntu install: https://github.com/golang/go/wiki/Ubuntu
|
|
|
|
|
|
|
|
## Compile
|
|
|
|
|
2020-05-29 08:03:46 +03:00
|
|
|
|
|
|
|
Generate the js bundle for the frontend:
|
|
|
|
```
|
2021-04-12 14:07:17 +03:00
|
|
|
cd public/js
|
2020-05-29 08:03:46 +03:00
|
|
|
rollup -c rollup.config.js
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate the `mapserver` binary:
|
2019-05-08 15:58:48 +03:00
|
|
|
```bash
|
2022-02-10 07:06:20 +03:00
|
|
|
# build the binary for the current platform
|
2019-05-08 15:58:48 +03:00
|
|
|
go build
|
|
|
|
|
|
|
|
# (optionally) run the unit-tests
|
|
|
|
go test ./...
|
|
|
|
|
|
|
|
```
|
2020-05-29 08:03:46 +03:00
|
|
|
|
|
|
|
|