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

How to deploy specific files, using button, on SFTP? #145

Closed DavidA2014 closed 6 years ago

DavidA2014 commented 6 years ago

Hi Marcel, Please will you help me with my settings confusion? I want to deploy a specific file using SFTP. I have this working with 'deployOnChange':

"deploy": {

    "packages": [
        {
            "name": "My project",

            "deployOnChange": {
                "files": [
                    "Source/NonDebug/MyAP.out"
                ],
                "useTargetList": true
            },

            "targets": [ "mypc" ]
        }
    ],

But I want to use a button instead of deployOnChange:

"deploy": {

    "packages": [
        {
            "name": "My project",

            "button": {
                "text": "Deploy to LedaPC",
                "tooltip": "Click here to deploy to mypc...",

                "targets": [ "My target" ]
            },

            "targets": [ "mypc" ]
        }
    ],

Using button, can I specify "files" to limit the file types transferred?

BTW should I move to deploy.reloaded?

Best regards David

DavidA2014 commented 6 years ago

Worked it out:

    "packages": [
        {
            "name": "My project",
            "files": [
                "Source//myAP.out"
            ],

            "button": {
                "text": "Deploy to myPC",
                "tooltip": "Click here to deploy to myPC...",
                "targets": [ "My target" ]
            },
        }
    ],

I would still be interested to know if I should move to deploy.reloaded?

mkloubert commented 6 years ago

@DavidA2014

Yes, you can give the new extension a try. If you install vscode-deploy-reloaded, you should uninstall or deactivate that extension first.

All required (basic) features (and more) are implemented there and running very stable.

If you have questions, suggestions and/or found bugs, you can open an issue here.

Most of the settings should be compatible with the old extension, but you should take a look at the wiki to check this out.

DavidA2014 commented 6 years ago

Thank you