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