Skip to content

Commit

Permalink
Merge pull request #106 from rolldone/working
Browse files Browse the repository at this point in the history
Working
  • Loading branch information
rolldone authored Mar 30, 2022
2 parents 6f4dedb + e27ac65 commit 0cb06fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/devsync/services/DevSyncService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ const DevSyncService = BaseService.extend<DevSyncServiceInterface>({
console.clear();
process.stdout.write(chalk.green('Devsync | ') + 'Watch Mode' + '\r');
// this.uploader._consoleAction = "watch";
if(this.uploader == null){
this.uploader = new Uploader(currentConf, this._cli);
}
this.uploader.startConsole(false);
for (var i = 0; i < total_tab; i++) {
if (this.uploader.getConsoleMode(i) == "local") {
Expand Down
2 changes: 2 additions & 0 deletions src/app/devsync2/compute/HttpEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ const HttpEvent = BaseModel.extend<Omit<HttpEventInterface, 'model'>>({
case data.includes('total size'):
_ptyProcess.write('exit' + '\r')
break;
case data.includes('WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!'):
case data.includes('Someone could be eavesdropping on you right now (man-in-the-middle attack)!'):
case data.includes('No such file or directory'):
case data.includes('rsync error:'):
_ptyProcess.write('exit' + '\r')
Expand Down
4 changes: 4 additions & 0 deletions src/app/devsync2/services/DevRsyncService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,10 @@ const DevRsyncService = BaseService.extend<DevRsyncServiceInterface>({
console.clear();
process.stdout.write(chalk.green('Devsync | ') + 'Watch Mode' + '\r');
// this.uploader._consoleAction = "watch";
// Check if the uploader suddenly null
if(this.uploader == null){
this.uploader = new Uploader(currentConf, this._cli);
}
this.uploader.startConsole(false);
for (var i = 0; i < total_tab; i++) {
if (this.uploader.getConsoleMode(i) == "local") {
Expand Down

0 comments on commit 0cb06fb

Please sign in to comment.