升级安装脚本
This commit is contained in:
+3
-1
@@ -12,8 +12,10 @@ LOG_PATH="/var/log/$APP_NAME"
|
||||
|
||||
# 检测是否在工程目录内
|
||||
if [ -d ".git" ] && [ -f "main.go" ]; then
|
||||
echo "==> 检测到工程目录,直接使用当前代码"
|
||||
echo "==> 检测到工程目录,更新代码..."
|
||||
PROJECT_DIR="$(pwd)"
|
||||
git pull origin master
|
||||
git submodule update --init --recursive
|
||||
else
|
||||
echo "==> 拉取工程代码..."
|
||||
cd /opt
|
||||
|
||||
Reference in New Issue
Block a user