添加 阿拉伯语 和 俄语

This commit is contained in:
2026-08-24 10:31:15 +08:00
parent e09f0eccda
commit 398bd6fac6
85 changed files with 2015 additions and 391 deletions
+6 -1
View File
@@ -37,6 +37,9 @@ function getConnectOptions() {
}
if (existsSync(config.privateKeyPath)) {
opts.privateKey = readFileSync(config.privateKeyPath)
if (process.env.DEPLOY_SSH_PASSPHRASE) {
opts.passphrase = process.env.DEPLOY_SSH_PASSPHRASE
}
return opts
}
return null
@@ -112,9 +115,11 @@ async function main() {
conn,
[
`cd ${config.remoteDir}`,
'mkdir -p public/images/uploads',
'tar -xzf deploy-pack.tar.gz',
'rm -f deploy-pack.tar.gz',
'ls -la .output/server/index.mjs .env',
'ls -la .output/server/index.mjs .env start.sh public/images/uploads',
'pm2 restart umed-web 2>/dev/null || pm2 start .output/server/index.mjs --name umed-web 2>/dev/null || echo PM2_NOT_CONFIGURED',
'echo DEPLOY_EXTRACT_OK',
].join(' && ')
)