@@ -0,0 +1,3 @@
+# 自动部署工具使用说明
+
+#!/bin/bash
+mvn clean package -DskipTests=true -Pprod
@@ -0,0 +1,4 @@
+@echo off
+setlocal
@@ -0,0 +1,9 @@
+# Set default APP_VERSION if not provided
+if [ -z "$APP_VERSION" ]; then
+ export APP_VERSION="latest"
+fi
+# Run the deploy playbook
+ansible-playbook ../deploy_playbook.yml -i ../inventory/hosts"$@"
@@ -0,0 +1,8 @@
+:: Set default APP_VERSION if not provided
+if "%APP_VERSION%"=="" set APP_VERSION=latest
+:: Run the deploy playbook
+ansible-playbook ../deploy_playbook.yml -i ../inventory/hosts %*
+# Run the frpc playbook
+ansible-playbook ../frpc_playbook.yml -i ../inventory/hosts "$@"
+:: Run the frpc playbook
+ansible-playbook ../frpc_playbook.yml -i ../inventory/hosts %*
+# Default action is status if not specified
+ACTION=${1:-status}
+shift 2>/dev/null || true
+# Run the manage playbook with the specified action
+ansible-playbook ../manage_playbook.yml -i ../inventory/hosts -e "action=$ACTION" $@
@@ -0,0 +1,13 @@
+:: Default action is status if not specified
+if "%1"=="" (
+ set ACTION=status
+) else (
+ set ACTION=%1
+ shift
+)
+:: Run the manage playbook with the specified action
+ansible-playbook ../manage_playbook.yml -i ../inventory/hosts -e "action=%ACTION%" %*