Closed TQLeung closed 2 months ago
+1
+1
Try to set context for those hosts. That worked for me.
Are contexts paths on meant for the host or local? It isn't clear what they represent.
Are contexts paths on meant for the host or local? It isn't clear what they represent.
Contexts path serves local.
+1
Try to set context for those hosts. That worked for me. Thanks to answer me。BUT IT IS NOT I NEED。 I need a solution that one FILE PATH upload to two different destinations(2 ip address), and when I press F1,the tool bar shows two options for me。
@TQLeung I think, the best you can do is to is to setup do multiple profiles. You can switch between the profiles using SFTP: Set Profile
, to choose which server you might want to upload by default or on save. Unfortunately, you can't save to both servers, you would need to trigger it manually every time using these
{
"profiles": {
"dev": {
"host": "dev-host",
"remotePath": "/dev",
},
"prod": {
"host": "prod-host",
"remotePath": "/prod"
}
},
"defaultProfile": "dev"
}
You can refer to this other issue https://github.com/Natizyskunk/vscode-sftp/issues/187
@TQLeung I think, the best you can do is to is to setup do multiple profiles. You can switch between the profiles using
SFTP: Set Profile
, to choose which server you might want to upload by default or on save. Unfortunately, you can't save to both servers, you would need to trigger it manually every time using these{ "profiles": { "dev": { "host": "dev-host", "remotePath": "/dev", }, "prod": { "host": "prod-host", "remotePath": "/prod" } }, "defaultProfile": "dev" }
You can refer to this other issue #187
This instance configuration will prompt that there is no 'name'
@TQLeung I think, the best you can do is to is to setup do multiple profiles. You can switch between the profiles using
SFTP: Set Profile
, to choose which server you might want to upload by default or on save. Unfortunately, you can't save to both servers, you would need to trigger it manually every time using these{ "profiles": { "dev": { "host": "dev-host", "remotePath": "/dev", }, "prod": { "host": "prod-host", "remotePath": "/prod" } }, "defaultProfile": "dev" }
You can refer to this other issue #187
It works! Brilliant man! Thank you very much!!
I have the configuration code like below, It seem not work correctly, when I press F1 (SFTP:Sync Local -> Remote),only show an option. I thought it shoud be show two option, but only one. Is there something wrong with my configuration?
sftp.json