Skip to content

Commit

Permalink
fix: support remote dist check
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiangyou committed Jan 11, 2021
1 parent 15ac33f commit 8ecf2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/views/home/TaskCenter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default {
if (projectType === 'dir') {
await this._uploadFile(ssh, localFile, deployDir + '/dist.zip', taskId)
await this._runCommand(ssh, 'unzip dist.zip', deployDir, taskId)
await this._runCommand(ssh, 'mv dist ' + releaseDir, deployDir, taskId)
if (releaseDir !== 'dist') await this._runCommand(ssh, 'mv dist ' + releaseDir, deployDir, taskId)
await this._runCommand(ssh, 'rm -f dist.zip', deployDir, taskId)
} else {
await this._uploadFile(ssh, localFile, deployDir + '/' + releaseDir, taskId)
Expand Down

0 comments on commit 8ecf2a4

Please sign in to comment.