mkloubert / vs-deploy

Visual Studio Code extension that provides commands to deploy files of a workspace to a destination.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vs-deploy
MIT License
132 stars 23 forks source link

Using sftp upload file is very slow #76

Closed yolo2013 closed 7 years ago

yolo2013 commented 7 years ago

macOS Webstorm or coda 2 need about 2-4s, but vs-deploy take 10-15s. Please focus on this.

mkloubert commented 7 years ago

@yolo2013

Can you post an example configuration you are currently using?

yolo2013 commented 7 years ago

@mkloubert

{ "deploy": { "packages": [{ "name": "xxx", "description": "Master", "targets": ["wxtest"], "files": [ "some_dir/**" ], "deployOnSave": false }], "targets": [{ "type": "sftp", "name": "wxtest", "description": "xxx", "dir": "/usr/local/tomcat7/webapps", "host": "192.168.1.xx", "port": 22, "user": "root", "password": "xxxxxx", "checkBeforeDeploy": true }] } }

mkloubert commented 7 years ago

@yolo2013

Have you tried to set the checkBeforeDeploy in your target to (false)?

mkloubert commented 7 years ago

@yolo2013

I have released a new version 9.7.0.

This speeds up deployments with checkBeforeDeploy = (true).

If you want to increase the upload speed, you should set this setting to (false) (or remove it), if you do not need it.

yolo2013 commented 7 years ago

@mkloubert I will try later. Thanks for your contributions.