添加 阿拉伯语 和 俄语
This commit is contained in:
@@ -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(' && ')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user