Giter Club home page Giter Club logo

Comments (8)

mkloubert avatar mkloubert commented on July 20, 2024

@AlbertoBonfiglio

Unfortunately, I could not reproduce the issue in my test scenario.

I created the following directory structure:

image

When I deploy the package to FTP Server target, I get the following response:

Start deploying files to 'FTP Server' ...

Deploying file 'd:\Eigene Dateien\Desktop\vscode-deploy-reloaded\dist\brand\small.mp4' to '[test WebApp Dev] /brand (FTP Server)' ... [OK]
Deploying file 'd:\Eigene Dateien\Desktop\vscode-deploy-reloaded\dist\css\test.css' to '[test WebApp Dev] /css (FTP Server)' ... [OK]
Deploying file 'd:\Eigene Dateien\Desktop\vscode-deploy-reloaded\dist\images\test.png' to '[test WebApp Dev] /images (FTP Server)' ... [OK]
Deploying file 'd:\Eigene Dateien\Desktop\vscode-deploy-reloaded\dist\index.php' to '[test WebApp Dev] / (FTP Server)' ... [OK]
Deploying files to 'FTP Server' has been finished.

Can you try the following settings for the Version 0.0.0 package (replace ** with **/*)?

    "packages": [
        {
            "name": "Version 0.0.0",
            "description": "WebApp Package version 0.0.0",
            "files": [

                "dist/**/*"

            ],
            "exclude": [

                "dist/assets/data/**/*"

            ],               
            
            // ...
        },
    ]

I am running on Windows 10.

Btw.: If you would like to use the package button, you should target to FTP server prompt instead of test WebApp Dev:

            "button": {
                "text": "Deploy to 'FTP server'",
                "tooltip": "Click here to deploy to the target...",

                "targets": [ "FTP server" ],

                "showPrompt": true,
                "enabled": true
            }

from vscode-deploy-reloaded.

AlbertoBonfiglio avatar AlbertoBonfiglio commented on July 20, 2024

Thanks for the heads up on the button.
For the directories try having multiple subdirs in the assets folder (e.g. assets/data, assets/scripts, assets/logos etc.). Ideally it should copy them all except assets/data. What I found is that there must be an error in the logic when it creates the sus sub folders because if I run the script twice it works as expected.

from vscode-deploy-reloaded.

mkloubert avatar mkloubert commented on July 20, 2024

@AlbertoBonfiglio

Is that right, that it might happen, that, at the beginning, especially the sub folders are empty, because the files are generated while the deployment?

from vscode-deploy-reloaded.

AlbertoBonfiglio avatar AlbertoBonfiglio commented on July 20, 2024

@mkloubert Not sure what you're asking. The files are generated when i run the build. Once that task is complete I run the deployment script. The target directory is supposed to be empty.

from vscode-deploy-reloaded.

mkloubert avatar mkloubert commented on July 20, 2024

@AlbertoBonfiglio

OK, the deployment always starts after the build process, what means you have all your files inside the dist folder. Or can it happen, that deployment starts, when build process has not been finished yet?

from vscode-deploy-reloaded.

AlbertoBonfiglio avatar AlbertoBonfiglio commented on July 20, 2024

@mkloubert deployment always start after the build.

from vscode-deploy-reloaded.

davidmcl avatar davidmcl commented on July 20, 2024

I too am encountering this issue - but in a very simple scenario; there is no build process - it's just a straight SFTP package deploy from a LinuxMint 18.3 (Ubuntu 16.04) desktop VSCode 1.23.1 to a CentOS 7 server.

The scenario is this...
If the sub-directory is empty, it doesn't get created on the deploy - if it has a file with content, it does get created. Simple as that. Also, if a sub-folder is deleted, the content is removed, but the sub-folder remains on the target system.

FYI, an interesting additional scenario found when testing is that if an empty file is created, it also is not deployed when it is created - although if one or more characters are entered or a deploy is requested - it will deploy the file, even empty. I suspect this may be VS Code related if you are using its events to drive your actions as the vscode explorer icon doesn't indicate a "changed" file either until some content is entered in the new created file.

Thanks,
David

from vscode-deploy-reloaded.

csears123 avatar csears123 commented on July 20, 2024

I am seeing the same behavior as @davidmcl where I simply have empty folders that are not getting created when deploy executes. Files will eventually be generated into these folders as the application runs on the server, but the initial deploy does not create the empty folders and the application will fail unless I manually create them.

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.