41 lines
946 B
Markdown
41 lines
946 B
Markdown
- `/api/server/heartbeat` - server heartbeat
|
|
- `/api/plugin/{id}` - plugin info
|
|
- `/api/plugin/find/{name}` - find a plugin id by name
|
|
|
|
## Deployment
|
|
**Note:** if you have any issues with the build, do `./mvnw clean` and try again.
|
|
|
|
### Docker
|
|
The best way to deploy is using Docker.
|
|
|
|
To build an image:
|
|
```bash
|
|
./mvnw install -Dquarkus.container-image.build=true
|
|
```
|
|
|
|
TODO write instructions.
|
|
|
|
### Java
|
|
#### Normal JAR
|
|
To build a JAR:
|
|
```bash
|
|
./mvnw package
|
|
```
|
|
The output will be `target/quarkus-app/quarkus-run.jar` \
|
|
You to distribute the whole `target/quarkus-app` directory.
|
|
|
|
#### Uber JAR
|
|
To build an uber-JAR:
|
|
```bash
|
|
./mvnw package -Dquarkus.package.jar.type=uber-jar
|
|
```
|
|
The output will be `target/mstats-1.0.0-runner.jar` \
|
|
You only need distribute that JAR.
|
|
|
|
### Native
|
|
To build a GraalVM native image:
|
|
```bash
|
|
./mvnw package -Dnative
|
|
```
|
|
The output will be `target/mstats-1.0.0-runner` \
|
|
You only need to distribute that executable.
|