vscode-deploy-reloaded
vscode-deploy-reloaded copied to clipboard
Deploying a file takes ages
Description
Deploying a single file takes at minimum 30sec whereas vs-deploy does it immediately.
{
"deploy.reloaded": {
"targets": [
{
"type": "ftp",
"dir": "/public_html",
"host": "...",
"port": 21,
"secure": false,
"user": "...",
"password": "...",
"mappings": {
"/sources/**/*": "/"
}
}
]
}
}
Logs
INFO extension.deploy.reloaded.loadplugins - [12/Jun/2018:17:42:03 +0000] "Loaded 19 plugins:
- app
- azureblob
- batch
- compiler
- dropbox
- each
- ftp
- list
- local
- mail
- map
- prompt
- s3bucket
- script
- sftp
- slack
- switch
- test
- zip
"
INFO extension.deploy.reloaded.loadplugins - [12/Jun/2018:17:45:49 +0000] "Loaded 19 plugins:
- app
- azureblob
- batch
- compiler
- dropbox
- each
- ftp
- list
- local
- mail
- map
- prompt
- s3bucket
- script
- sftp
- slack
- switch
- test
- zip
"
Your environment
- Operating system: macOS 10.13.4
- Visual Studio Code version: 1.24.0
- Extension version: 0.75.0
@ivanvoznyakovsky
Sorry for the late answer!
I have added a useFastGlob
in version 0.80.0 as global, package and/or target settings, which can help to speed up the deployment.
{
"deploy.reloaded": {
"targets": [
{
// ...
"useFastGlob": true,
"mappings": {
"sources": "/",
"sources/**/*": "/"
}
}
]
}
}
If you use the new setting(s), you have to change your patterns, by removing leading /
, e.g., because fast-glob works a little bit different.
An alternative is to use "fast file check" as described in that issue opened by @carlosesilva.
@mkloubert great. thnx, I'll try that out
#60 #55 "useFastGlob": true, same. up to 20 seconds
"fastCheckOnSave": true, looks fine