Comments (3)
Doesn't work for me. I tried it for deploying manually. If i deploy a file or folder (via shortcut, button or context menu) it always asks me to which target i want to deploy.
I’ve been deploying more files manually recently than I used to, and this is what I find as well. It seems when you manually deploy, it will always ask where to deploy to; the targets you set up in your settings.json are only used when the deploy action is invoked by an event listener.
I don’t see anything on the wiki that looks like it might apply to manual invocation, so it looks like this may not be possible currently.
from vscode-deploy-reloaded.
When you make a package, you choose an array of files to include in that package. You can simply make two packages, one for folder A and one for folder B, with different targets. I’m assuming here you want to deploy on save (or change) – I presume it should work if you want to deploy manually as well (though I rarely use that feature, so I’m not a hundred per cent sure there):
"deploy.reloaded": {
"packages": [
{
"name": "Deploy folder A",
"files": [
"folder-a/**/*.*"
],
"deployOnSave": [ "Folder A Target" ]
},
{
"name": "Deploy folder B",
"files": [
"folder-b/**/*.*"
],
"deployOnSave": [ "Folder B Target" ]
}
],
"targets": [
{
"type": "ftp", // or whatever type you want to use
"name": "Folder A Target",
"dir": "/target-a/"
// add rest of target settings here
},
{
"type": "ftp", // or whatever type you want to use
"name": "Folder B Target",
"dir": "/target-b/"
// add rest of target settings here
}
],
}
from vscode-deploy-reloaded.
Doesn't work for me. I tried it for deploying manually. If i deploy a file or folder (via shortcut, button or context menu) it always asks me to which target i want to deploy.
I tried that config:
"packages": [
{
"name": "customer1",
"deployOnSave": false,
"files": [
"/customer1folder/**/*"
],
"targets": ["target1"]
},
{
"name": "customer2",
"deployOnSave": false,
"files": [
"/customer2folder/**/*"
],
"targets": ["target2"]
}
],
"targets": [
{
"name": "target1",
"type": "sftp",
"host": "***",
"port": 22,
"user": "***",
"password": "***",
"dir": "/htdocs",
"mappings": {
"/customer1folder/**/*": "/htdocs"
}
},
{
"name": "target2",
"type": "sftp",
"host": "***",
"port": 22,
"user": "***",
"password": "***",
"dir": "/htdocs",
"mappings": {
"/customer2folder/**/*": "/htdocs"
}
}
],
from vscode-deploy-reloaded.
Related Issues (20)
- Symbolink links in packages are not followed under Windows HOT 1
- Deploy Based on SVN Status HOT 1
- SFTP destination file is given current timestamp, not timestamp of source file
- Exclude filters not being honoured
- Empty folders and dot files are not deployed
- Ability to pull all files with sub folders on selection
- Disable popups
- Typo on wiki-page
- Be more verbose when action start or connecting
- I tried setting up this extension and now I can't reach my live domain anymore
- How to select files without parent folder
- Clean/delete from remote directory before deploy HOT 1
- Since VsCode Version : 1.53.0 Deploy crash on save #173
- sftp: Cannot parse privateKey: Unsupported key format HOT 2
- After renaming a file from CamelCase to lowercase, it's still deployed with CamelCase name (SFTP)
- Add support for active-transfer FTP servers
- How to get proper file permissions on the destination server?
- 'Cannot parse privateKey: Unsupported key format'
- Deploy reloaded no longer working after vscode update to 1.59.0 HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-deploy-reloaded.