mirror of https://github.com/hykilpikonna/AquaDX
[-] Remove deploy script
parent
0fda25b482
commit
0ac1a4c088
14
deploy.sh
14
deploy.sh
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This is a deploy script for this java program
|
||||
|
||||
# 1. Build the jar
|
||||
rm -rf build/libs
|
||||
JAVA_HOME="/usr/lib/jvm/java-17-openjdk" ./gradlew build
|
||||
|
||||
# 2. Copy the jar to the server
|
||||
jar_name=$(ls -v build/libs/aqua-*.jar | grep -v "plain" | head -n 1)
|
||||
scp "$jar_name" lux:/root/aqua/aqua.jar
|
||||
|
||||
# 3. Restart the service
|
||||
ssh lux "systemctl restart aqua"
|
Loading…
Reference in New Issue