Comments (8)
Unfortunately, I could not reproduce the issue in my test scenario.
I created the following directory structure:
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.
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.
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.
@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.
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.
@mkloubert deployment always start after the build.
from vscode-deploy-reloaded.
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.
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)
- Symbolink links in packages are not followed under Windows HOT 1
- Deploy Based on SVN Status HOT 1
- Best way to deploy different folders to different targets HOT 3
- SFTP destination file is given current timestamp, not timestamp of source file
- Exclude filters not being honoured
- Empty folders and dot files are not deployed
- Ability to pull all files with sub folders on selection
- Disable popups
- Typo on wiki-page
- Be more verbose when action start or connecting
- I tried setting up this extension and now I can't reach my live domain anymore
- How to select files without parent folder
- Clean/delete from remote directory before deploy HOT 1
- Since VsCode Version : 1.53.0 Deploy crash on save #173
- sftp: Cannot parse privateKey: Unsupported key format HOT 2
- After renaming a file from CamelCase to lowercase, it's still deployed with CamelCase name (SFTP)
- Add support for active-transfer FTP servers
- How to get proper file permissions on the destination server?
- 'Cannot parse privateKey: Unsupported key format'
- Deploy reloaded no longer working after vscode update to 1.59.0 HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-deploy-reloaded.