-
-
Notifications
You must be signed in to change notification settings - Fork 39
[help-needed] Button for deploy specific folder #25
Comments
You have to specify glob patterns in {
"deploy.reloaded": {
"packages": [
{
"name": "Public to test",
"files": [
"js/*.js",
"css/*.css",
"**/*.html",
],
"exclude": [
"**/*.map",
],
"button": {
"text": "Deploy to 'test'",
"tooltip": "Click here to deploy to the target...",
"targets": [ "Test" ]
}
}
],
"targets": [
{
"type": "sftp",
"name": "Test",
"description": "Test server",
"dir": "/var/www/html/myProject"
}
]
}
} Folder mappings only make sense if you want to map a local folder to another one: {
"deploy.reloaded": {
// ...
"targets": [
{
"type": "sftp",
"name": "Test",
"description": "Test server",
"dir": "/var/www/html/myProject",
"mappings": {
"/html/**": "/PUBLIC"
}
}
]
}
} Anything that is part of |
thnx. I specified glob patterns in files properties and its work. |
Oh ... the feature with the defined target, as described in the wiki, is not implemented yet ... I will try to implement this in the next hours. |
The feature is available since version 0.51.0. As defined in your example config, the button should only deploy to |
thnx. it's really fast) ps. maybe you know when it will be available in VSC? |
The new version is published and available. Select If this does not work, simply reinstall it. |
Seems it was some issue with my VSC. All works after I restart it |
Hello!
I want to create a button to deploy specific folder from anywhere in project. Is this possible?
I'll try to do the following
Example config
But it deploy all my project to server instead one folder
Your environment
The text was updated successfully, but these errors were encountered: