init full backend repo with src + deploy config

This commit is contained in:
2025-07-15 11:37:42 +08:00
commit 8dc1824603
24 changed files with 825 additions and 0 deletions

13
bin/pre-steps.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
pid=$(ps -ef | grep -w java | grep "alex-api-0.0.1-SNAPSHOT.jar" | grep -v grep | awk '{print $2}')
echo "Found pid: $pid"
if [ -z "$pid" ]; then
echo "Java application not running."
else
sudo kill -9 $pid
echo "Java application (pid: $pid) stopping..."
sleep 2
fi