Skip to content

Commit

Permalink
solve the loss js, css, image files problem
Browse files Browse the repository at this point in the history
  • Loading branch information
wherelse committed May 5, 2022
1 parent 227ff9c commit a6253e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/plugins/deploys/sftp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class SftpDeploy extends Model {
await client.mkdir(remotePath)
const res = await client.putDirectory(localPath, remotePath, {
recursive: true,
concurrency: 10,
concurrency: 1, // 解决同步丢失js、css、图片文件问题
validate: function (itemPath: string) {
const baseName = path.basename(itemPath)
return baseName.substr(0, 1) !== '.' // do not allow dot files
Expand Down

0 comments on commit a6253e5

Please sign in to comment.