blob: aaf92bcca22488b911b5b01d7999e2822a2dd557 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
This directory contains everything to build a deb package that bundles a Spring Boot app that starts a web server.
The Spring Boot application has not been bundled with this. You need to build it seperately and put it in the correct directory (run build.sh for further details).
To build, run the following command:
./build.sh
To install the build deb package run the following commands replacing the package.deb with the correct name of the deb file.
cp package.deb /tmp
cd /tmp
apt install ./package.deb
The above "apt install" will download dependencies if needed. Otherwise, dpkg command can just be used to install or upgrade the package:
dpkg -i package.deb
After installing the package, update the configuration file /etc/fs-spring-boot-kamal/application.yaml .
Enable service to start at boot time:
systemctl enable fs-spring-boot-kamal
Start service:
systemctl start fs-spring-boot-kamal
View service log:
journalctl -u fs-spring-boot-kamal -f
(Press CTRL+C to terminate log viewing)
Access the service:
http://server-ip-or-hostname:8085/
(Instead of 8085, use the port configured in application.yaml file)
|