|
|
# Production control server
|
|
|
|
|
|
## Runtime dependencies
|
|
|
|
|
|
* JDK8
|
|
|
* Tomcat8
|
|
|
* Postgres 9.5 with additional extensions
|
|
|
* PostGIS 9.5
|
|
|
* quantile
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
There are 3 applications running on top of Tomcat. It's `RMBTControlServer`, `RMBTStatisticServer` and `RMBTMapServer`. They are installed simply by copying their respective `.war` files to Tomcat's `webapps` directory. This can be done even when Tomcat is running, but I would not recommend that. To simplify deployment to Tomcat, `deploy.sh` script exists in root of the repository. Then, any version can be installed by cloning the repository and calling the deploy script. It will build all neccesary parts and deploy them to Tomcat. Please skim through the script before using it, if you haven't done so before. It's not long.
|
|
|
|
|
|
For the script to work, file `.env.production` is required in the root of the repository. It's not there by default. You can create one by copying it from `.env` file, which is already there.
|
|
|
|
|
|
PostgreSQL is expected to be run on port 5432. Host is configured in `.env.production` file (used only when building with `deploy.sh` or `build_servers.sh production`). |
|
|
\ No newline at end of file |