无源标靶上位机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
453 B

#!/bin/bash
# 服务器端部署脚本 - 在服务器上运行
APP_NAME="my-node-app"
PACKAGE_PATH="./$APP_NAME-1.0.0.tar.gz"
INSTALL_DIR="/tmp/$APP_NAME-install"
if [ ! -f "$PACKAGE_PATH" ]; then
echo "错误: 找不到部署包 $PACKAGE_PATH"
exit 1
fi
# 创建临时安装目录
mkdir -p $INSTALL_DIR
tar -xzf $PACKAGE_PATH -C $INSTALL_DIR
# 运行部署脚本
cd $INSTALL_DIR
chmod +x deploy.sh
./deploy.sh
# 清理
rm -rf $INSTALL_DIR