From 3500854f416705ac7fea34dc93c23f3aa23cfa9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B4=9B=E5=B8=8C=E9=9B=85?= Date: Thu, 25 Apr 2024 08:48:44 +0800 Subject: [PATCH] deploy.js --- deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.js b/deploy.js index 40b88b1..71835bc 100644 --- a/deploy.js +++ b/deploy.js @@ -109,13 +109,13 @@ async function main() { await exec(`mv ${target}/dist ${target}/home`) //} - const nginxTarget = '/home/lolosia/nginx' + const nginxTarget = '/usr/share/nginx/html' console.log('移除旧目录 ...') await sudo(`rm -rf ${nginxTarget}/${nginxContentPath}`) console.log('复制文件 到指定目录 ...') - await sudo(`cp -r -f ${target}/* ${nginxTarget}`) + await sudo(`cp -r -f ${target}/* ${nginxTarget}/home`) await new Promise((r) => { dialog.info(`你现在可以关闭终端,去做其他事情了`, `${nginxContentPath}项目部署完成!`, r) })