liximomo / vscode-sftp

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

How Sync projet with VPS ? #701

Open s-damian opened 4 years ago

s-damian commented 4 years ago

Hello. Please, Y have problem : I want my project to be fully synchronized locally and on my VPS, but not work ?

In my conf (sftp.json), I have this :

{
    "protocol": "sftp",
    "port": 22,
    "name": "Nom",

    "uploadOnSave": true,
    "ignore": [".git", ".vscode", ".env"],

    "watcher": {
        "files": "*",
        "autoUpload": true,
        "autoDelete": true
    },

    "profiles": {
        "dev-dev": {
            "host": "XXXXX",
            "username": "root",
            "password": "XXXXX",
            "remotePath": "/var/www/XXXXX/dev"
        },
        "dev-preprod": {
            "host": "XXXXX",
            "username": "root",
            "password": "XXXXX",
            "remotePath": "/var/www/XXXXX/preprod"
        }
      },

      "defaultProfile": "dev-dev"
}

But this not working.

How to do this please?

Thank you very much