feat: 新增部署脚本

This commit is contained in:
小蟑螂
2026-07-07 23:15:10 +08:00
parent dd8cba9777
commit 8af2e9194b
15 changed files with 2323 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
{
"currentEnv": "test",
"services": {
"frontend": {
"test": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/var/www/ecom-frontend", "authType": "password" },
"port": 80,
"extractDir": "/var/www/ecom-frontend"
},
"pre": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/var/www/ecom-frontend", "authType": "password" },
"port": 80,
"extractDir": "/var/www/ecom-frontend"
},
"production": {
"server": { "host": "frontend.prod.com", "port": 22, "username": "root", "deployPath": "/var/www/ecom-frontend", "authType": "password" },
"port": 80,
"extractDir": "/var/www/ecom-frontend"
}
},
"backend": {
"test": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-backend", "authType": "password" },
"port": 8080,
"springProfile": "test",
"dbUrl": "",
"redisUrl": ""
},
"pre": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-backend", "authType": "password" },
"port": 8080,
"springProfile": "staging",
"dbUrl": "",
"redisUrl": ""
},
"production": {
"server": { "host": "backend.prod.com", "port": 22, "username": "root", "deployPath": "/opt/ecom-backend", "authType": "password" },
"port": 8080,
"springProfile": "prod",
"dbUrl": "",
"redisUrl": ""
}
},
"license": {
"test": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-license", "authType": "password" },
"port": 3100,
"nodeEnv": "test",
"licenseDbUrl": ""
},
"pre": {
"server": { "host": "192.168.3.100", "port": 22, "username": "root", "deployPath": "/opt/ecom-license", "authType": "password" },
"port": 3100,
"nodeEnv": "pre",
"licenseDbUrl": ""
},
"production": {
"server": { "host": "license.prod.com", "port": 22, "username": "root", "deployPath": "/opt/ecom-license", "authType": "password" },
"port": 3100,
"nodeEnv": "production",
"licenseDbUrl": ""
}
}
}
}