diff --git a/deployment/README.md b/deployment/README.md new file mode 100644 index 00000000..e14bbd70 --- /dev/null +++ b/deployment/README.md @@ -0,0 +1,26 @@ +## Auto Deploy EventMesh Dashboard + +### Usage + +``` +cd ~/service +git clone -b dev https://github.com/apache/eventmesh-dashboard.git +cd eventmesh-dashboard +chmod +x deployment/auto-deploy-eventmesh-dashboard.sh +``` + +Edit credentials: + +``` +vim deployment/.env +``` + +Add task to crontab: + +``` +crontab -e +``` + +``` +0 * * * * ~/service/eventmesh-dashboard/deployment/auto-deploy-eventmesh-dashboard.sh +``` \ No newline at end of file diff --git a/deployment/auto-deploy-eventmesh-dashboard.sh b/deployment/auto-deploy-eventmesh-dashboard.sh index d9623916..24ca44be 100644 --- a/deployment/auto-deploy-eventmesh-dashboard.sh +++ b/deployment/auto-deploy-eventmesh-dashboard.sh @@ -60,7 +60,7 @@ if [ $LOCAL != $REMOTE ]; then fi # Compile and package the Jar file - mvn clean package + mvn clean package -DskipTests # Start the springboot application and record the process id to pid.log file, redirect console logs to eventmesh-dashboard-.log file nohup java -DDB_ADDRESS=$DB_ADDRESS -DDB_USERNAME=$DB_USERNAME -DDB_PASSWORD=$DB_PASSWORD -jar $JAR_FILE_PATH > $APP_LOG 2>&1 & @@ -79,7 +79,7 @@ else echo "$(date +"%Y-%m-%d %H:%M:%S") - application running, no operation performed." >> $AUTO_DEPLOY_LOG else # If the pid.log file does not exist, compile and package the Jar file - mvn clean package + mvn clean package -DskipTests # Start the springboot application and record the process id to pid.log file, redirect console logs to eventmesh-dashboard-.log file nohup java -DDB_ADDRESS=$DB_ADDRESS -DDB_USERNAME=$DB_USERNAME -DDB_PASSWORD=$DB_PASSWORD -jar $JAR_FILE_PATH > $APP_LOG 2>&1 &