feat: 调整部署脚本

This commit is contained in:
2026-07-28 17:05:22 +08:00
parent 1edf3d560c
commit fe45e31165
14 changed files with 255 additions and 118 deletions
+73 -13
View File
@@ -3,38 +3,78 @@
"services": {
"frontend": {
"test": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/var/www/ecom-frontend", "authType": "password" },
"server": {
"host": "192.168.3.101",
"port": 22,
"username": "root",
"deployPath": "/opt/1panel/www/sites",
"authType": "key",
"keyPath": "/home/qinghua/.ssh/ecom-deploy"
},
"port": 80,
"extractDir": "/var/www/ecom-frontend"
"staticDeploy": true
},
"pre": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/var/www/ecom-frontend", "authType": "password" },
"server": {
"host": "192.168.3.101",
"port": 22,
"username": "root",
"deployPath": "/opt/1panel/www/sites",
"authType": "key",
"keyPath": "/home/qinghua/.ssh/ecom-deploy"
},
"port": 80,
"extractDir": "/var/www/ecom-frontend"
"staticDeploy": true
},
"prod": {
"server": { "host": "frontend.prod.com", "port": 22, "username": "root", "deployPath": "/var/www/ecom-frontend", "authType": "password" },
"server": {
"host": "frontend.prod.com",
"port": 22,
"username": "root",
"deployPath": "/opt/1panel/www/sites",
"authType": "password"
},
"port": 80,
"extractDir": "/var/www/ecom-frontend"
"staticDeploy": true
}
},
"backend": {
"test": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-backend", "authType": "password" },
"server": {
"host": "192.168.3.101",
"port": 22,
"username": "root",
"deployPath": "/opt",
"authType": "key",
"keyPath": "/home/qinghua/.ssh/ecom-deploy"
},
"port": 8101,
"springProfile": "test",
"dbUrl": "",
"redisUrl": ""
},
"pre": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-backend", "authType": "password" },
"server": {
"host": "192.168.3.101",
"port": 22,
"username": "root",
"deployPath": "/opt",
"authType": "key",
"keyPath": "/home/qinghua/.ssh/ecom-deploy"
},
"port": 8102,
"springProfile": "pre",
"dbUrl": "",
"redisUrl": ""
},
"prod": {
"server": { "host": "backend.prod.com", "port": 22, "username": "root", "deployPath": "/opt/ecom-backend", "authType": "password" },
"server": {
"host": "backend.prod.com",
"port": 22,
"username": "root",
"deployPath": "/opt",
"authType": "password"
},
"port": 8103,
"springProfile": "prod",
"dbUrl": "",
@@ -43,23 +83,43 @@
},
"license": {
"test": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-license", "authType": "password" },
"server": {
"host": "192.168.3.100",
"port": 22,
"username": "root",
"deployPath": "/opt",
"authType": "key",
"keyPath": "/home/qinghua/.ssh/ecom-deploy"
},
"port": 3100,
"nodeEnv": "test",
"licenseDbUrl": ""
},
"pre": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-license", "authType": "password" },
"server": {
"host": "192.168.3.100",
"port": 22,
"username": "root",
"deployPath": "/opt",
"authType": "key",
"keyPath": "/home/qinghua/.ssh/ecom-deploy"
},
"port": 3100,
"nodeEnv": "pre",
"licenseDbUrl": ""
},
"prod": {
"server": { "host": "license.prod.com", "port": 22, "username": "root", "deployPath": "/opt/ecom-license", "authType": "password" },
"server": {
"host": "license.prod.com",
"port": 22,
"username": "root",
"deployPath": "/opt",
"authType": "password"
},
"port": 3100,
"nodeEnv": "prod",
"licenseDbUrl": ""
}
}
}
}
}