forked from Natizyskunk/vscode-sftp
-
Notifications
You must be signed in to change notification settings - Fork 3
Profiles
satiromarra edited this page Jan 15, 2023
·
3 revisions
All "Configuration" options can be used here, overwriting the initial configuration.
{
"username": "username",
"password": "password",
"remotePath": "/remote/workspace/a",
"watcher": {
"files": "dist/*.{js,css}",
"autoUpload": false,
"autoDelete": false
},
"profiles": {
"dev": {
"name" : "My Dev Server",
"host": "dev-host",
"remotePath": "/dev",
"context": "local-dev-path",
"uploadOnSave": true
},
"prod": {
"name" : "My Prod Server",
"host": "prod-host",
"context": "local-dev-path",
"remotePath": "/prod"
}
},
"defaultProfile": "dev"
}
[
{
"name": "server1",
"context": "project/build",
"host": "host",
"username": "username",
"password": "password",
"remotePath": "/remote/project/build",
"profiles": {
"dev1": {
"name": "Server Dev 1",
"context": "local-dev-v1",
"host": "dev-host",
"remotePath": "/dev",
"uploadOnSave": true
},
"prod1": {
"name": "Server Prod 1",
"context": "local-prod-v1",
"host": "prod-host",
"remotePath": "/prod"
}
},
"defaultProfile": "dev1"
},
{
"name": "server2",
"context": "project/src",
"host": "host",
"username": "username",
"password": "password",
"remotePath": "/remote/project/src",
"profiles": {
"dev2": {
"name": "Server Dev 2",
"context": "local-dev-v2",
"host": "dev-host",
"remotePath": "/dev",
"uploadOnSave": true
},
"prod2": {
"name": "Server Prod 2",
"context": "plocal-rod-v2",
"host": "prod-host",
"remotePath": "/prod"
}
},
"defaultProfile": "dev2"
}
]