Giter Club home page Giter Club logo

Comments (7)

mkloubert avatar mkloubert commented on July 20, 2024 1

@vystepanenko

The feature is available since version 0.51.0.

As defined in your example config, the button should only deploy to Test target now.

from vscode-deploy-reloaded.

mkloubert avatar mkloubert commented on July 20, 2024 1

@vystepanenko

The new version is published and available.

Select Extensions tab on the left side (CTRL + Shift + X) and search for vscode-deploy-reloaded and you should see an "upgrade button".

If this does not work, simply reinstall it.

from vscode-deploy-reloaded.

vystepanenko avatar vystepanenko commented on July 20, 2024 1

Seems it was some issue with my VSC. All works after I restart it

from vscode-deploy-reloaded.

mkloubert avatar mkloubert commented on July 20, 2024

@vystepanenko

You have to specify glob patterns in files (and maybe exclude) properties of your package:

{
    "deploy.reloaded": {
        "packages": [
            {
                "name": "Public to test",

                "files": [
                    "js/*.js",
                    "css/*.css",
                    "**/*.html",
                ],

                "exclude": [
                    "**/*.map",
                ],
                
                "button": {
                    "text": "Deploy to 'test'",
                    "tooltip": "Click here to deploy to the target...",
                    "targets": [ "Test" ]
                }
            }
        ],

        "targets": [
            {
                "type": "sftp",
                "name": "Test",
                "description": "Test server",
                "dir": "/var/www/html/myProject"
            }          
        ]
    }
} 

Folder mappings only make sense if you want to map a local folder to another one:

{
    "deploy.reloaded": {
        // ...

        "targets": [
            {
                "type": "sftp",
                "name": "Test",
                "description": "Test server",
                "dir": "/var/www/html/myProject",

                "mappings": {
                    "/html/**": "/PUBLIC"
                }
            }          
        ]
    }
} 

Anything that is part of /html inside your workspace, will be deployed to /var/www/html/myProject/PUBLIC.

from vscode-deploy-reloaded.

vystepanenko avatar vystepanenko commented on July 20, 2024

thnx. I specified glob patterns in files properties and its work.
But I have several targets and when I pres button it still asked me to what exactly target i want to deploy

from vscode-deploy-reloaded.

mkloubert avatar mkloubert commented on July 20, 2024

@vystepanenko

Oh ... the feature with the defined target, as described in the wiki, is not implemented yet ... I will try to implement this in the next hours.

from vscode-deploy-reloaded.

vystepanenko avatar vystepanenko commented on July 20, 2024

thnx. it's really fast)

ps. maybe you know when it will be available in VSC?

from vscode-deploy-reloaded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.