forked from Cookies_Github_mirror/AquaDX
[-] Remove deploy script
This commit is contained in:
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"
|
||||
Reference in New Issue
Block a user