-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·39 lines (31 loc) · 1.02 KB
/
deploy.sh
File metadata and controls
executable file
·39 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# 完全自动化部署脚本
# 使用方法: ./deploy.sh <github_url1> [github_url2] [github_url3] ...
echo "🚀 启动完全自动化部署系统"
echo "=================================================="
# 检查Python是否可用
if ! command -v python3 &> /dev/null; then
echo "❌ Python3 未找到,请先安装Python3"
exit 1
fi
# 检查Node.js是否可用
if ! command -v node &> /dev/null; then
echo "❌ Node.js 未找到,请先安装Node.js"
exit 1
fi
# 检查参数
if [ $# -eq 0 ]; then
echo "使用方法:"
echo " ./deploy.sh <github_url1> [github_url2] [github_url3] ..."
echo ""
echo "示例:"
echo " ./deploy.sh https://github.com/black-forest-labs/flux"
echo " ./deploy.sh https://github.com/black-forest-labs/flux https://github.com/Stability-AI/generative-models"
exit 1
fi
# 给脚本执行权限
chmod +x auto_deploy_all.py
# 运行Python脚本
echo "🔄 执行自动化部署..."
python3 auto_deploy_all.py "$@"
echo "✅ 部署脚本执行完成!"