Compare commits
2 commits
a2c58a6cc6
...
9ac62fdf89
Author | SHA1 | Date | |
---|---|---|---|
9ac62fdf89 | |||
69dfeab125 |
2 changed files with 14 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -9,6 +9,7 @@ if [ "$choice" = "y" ]; then
|
|||
echo "building backend!"
|
||||
cd backend
|
||||
./gradlew shadowJar
|
||||
systemctl restart nelle-observer-api
|
||||
elif [ "$choice" = "n" ]; then
|
||||
echo "exiting..."
|
||||
elif [ "$choice" = "c" ]; then
|
||||
|
@ -22,6 +23,7 @@ elif [ "$choice" = "n" ]; then
|
|||
echo "building backend!"
|
||||
cd backend
|
||||
./gradlew shadowJar
|
||||
systemctl restart nelle-observer-api
|
||||
elif [ "$choice" = "n" ]; then
|
||||
echo "exiting..."
|
||||
elif [ "$choice" = "c" ]; then
|
||||
|
|
12
nelle-observer-api.service
Normal file
12
nelle-observer-api.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=nelle.observer API Daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/java -jar personalSiteAPI-all.jar
|
||||
WorkingDirectory={PathTo}/nelle-observer/backend/build/libs/
|
||||
SyslogIdentifier=personalSiteAPI
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue