liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 259 forks source link

one project; multiple instance folder need multiple config.json to upload #790

Closed arcanisgk closed 4 years ago

arcanisgk commented 4 years ago

hello i have structure like this:

dev             // project root
    local       // root enviroment for Local development
    dev     // root enviroment for Shared development
    quality     // root enviroment for testing and run unit test development
    prod        // root enviroment for Production and Test stress before upload to main server or deploy to end user.

each of these environments has its own FTP server; i cant set up and sftp.json per enviroment, not work, only work setup the project root.

i try this on .vscode-> sftp.json (file):

[
  {
    "name": "Local",
    "context": "dev/local",
    "host": "192.168.1.10",
    "username": "username",
    "password": "**********",
    "remotePath": "/"
  },
  {
    "name": "Dev",
    "context": "dev/dev",
    "host": "192.168.2.22",
    "username": "username",
    "password": "**********",
    "remotePath": "/"
  },
  {
    "name": "Quality",
    "context": "dev/quality",
    "host": "192.168.1.11",
    "username": "username",
    "password": "**********",
    "remotePath": "/"
  },
  {
    "name": "Production",
    "context": "dev/prod",
    "host": "192.168.1.15",
    "username": "username",
    "password": "**********",
    "remotePath": "/"
  }
]