Skip to content

Commit

Permalink
chore: 部署脚本更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ATQQ committed Nov 12, 2024
1 parent 15a8e83 commit 66e5d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ await $`echo ==🔧 压缩dist ==`
await $`tar -zvcf ${compressPkgName} dist && rm -rf dist`

await $`echo ==🚀 上传到服务器 ==`
await $`scp ${compressPkgName} ${user}@${origin}:./`
await $`scp ${compressPkgName} ${user}@${fullOrigin}:./`
await $`rm -rf ${compressPkgName}`

await $`echo ==✅ 部署代码 ==`
await $`ssh -p22 ${user}@${origin} "tar -xf ${compressPkgName} -C ${baseServerDir}/${fullOrigin}/${destDir}"`
await $`ssh -p22 ${user}@${fullOrigin} "tar -xf ${compressPkgName} -C ${baseServerDir}/${fullOrigin}/${destDir}"`

0 comments on commit 66e5d79

Please sign in to comment.