mkloubert / vs-deploy

Visual Studio Code extension that provides commands to deploy files of a workspace to a destination.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vs-deploy
MIT License
131 stars 24 forks source link

Remote path needs to be different from local package path #151

Open Kizmar opened 6 years ago

Kizmar commented 6 years ago

In my scenario, locally I have a package set up in "LocalDirectory\build", for example. I have a deploy target set up with a directory "RemoteDirectory".

I want to deploy the contents of "LocalDirectory\build" to the root of "RemoteDirectory", but it's deploying to "RemoteDirectory\LocalDirectory\build". Is there a way to change this?

mbursill commented 6 years ago

https://github.com/mkloubert/vs-deploy/issues/66#issuecomment-299896973

{
    "deploy": {
        "targets": [
            {
                "type": "ftp",

                // ...

                "mappings": [
                    {
                        "source": "/dist",
                        "target": "/"
                    }
                ]
            }
        ]
    }
}