Comments (7)
I dug into this a bit and tried it out on my deployment tests. Looks like LFTP actually adds ** in front of all glob paths automatically so the correct code is the following.
--exclude-glob=.git*/** --exclude-glob=.git** --exclude-glob=.htaccess
Nice catch, i'll update the readme.
from ftp-deploy-action.
Because the .git and .htaccess files have already been uploaded to the server you'll have to manually delete them or add --delete-excluded
Try deleting those files manually, then re-deploying and let me know if it's working 😄
from ftp-deploy-action.
Thanks for your reply! I've tried deleting the .git and .github folders and they keep reappearing, unfortunately. As for .htaccess, I'd like to keep the version on the server and stop it from being overwritten with the one in the repo.
from ftp-deploy-action.
Can you verify it works on your end before I close this out 😄
from ftp-deploy-action.
Yep, looks like that worked. Thanks!
(edit: while that fixes the most important issue, --only-newer still seems to do nothing on my end.)
from ftp-deploy-action.
Yeah unfortunately FTP doesn't have any built in way of diffing two file trees. LFTP has built out some basic diffing on top of FTP but its still nowhere near as solid as rsync.
Recursion mode can be one of
always',
never',missing',
newer'. With the option `newer' mirror compares timestamps of directories and enters a directory only if it is older or missing on the target side. Be aware that when a file changes the directory timestamp may stay the same, so mirror won't process that directory.
To be honest I've done limited testing with those flags as my sites are are relatively small so transferring the entire project is still quick. I need to spend some more time and see if a solution is possible.
Using --only-newer
as well as --ignore-time
(description: ignore time when deciding whether to upload) might be a good start ¯\(ツ)/¯
from ftp-deploy-action.
I dug into this a bit and tried it out on my deployment tests. Looks like LFTP actually adds ** in front of all glob paths automatically so the correct code is the following.
--exclude-glob=.git*/** --exclude-glob=.git** --exclude-glob=.htaccess
Nice catch, i'll update the readme.
This solution did not work for .md
files with --delete-excluded --exclude-glob=.md*/** --exclude-glob=.md** --exclude-glob=md*/** --exclude-glob=md** --exclude-glob=.MD*/** --exclude-glob=.MD** --exclude-glob=MD*/** --exclude-glob=MD**
ARGS
Had to --exclude-glob=readme.md*/** --exclude-glob=readme.md**
from ftp-deploy-action.
Related Issues (20)
- Node.js 16 actions are deprecated HOT 6
- add the 'include' parameter HOT 1
- BUG: FTP Error When a Folder is Deleted HOT 2
- v4.3.4 not found HOT 2
- Error: Server sent FIN packet unexpectedly, closing connection. HOT 1
- Error: Unable to resolve action `SamKirkland/[email protected]`, unable to find version `4.3.4` HOT 1
- Because deploy generally synchronizes all files again and not just the file I'm sending HOT 3
- FTP Upload Fails Every Time HOT 10
- Upload error HOT 4
- FTPError: 550 Failed to change directory
- Logs says everything went well but no files were transferred to server HOT 1
- Error 550 HOT 3
- Sync Problem ftp-deploy-sync-state.json available but not detected
- Asking about FTP Deploy State
- FTP Deply doesn't work on Master branch HOT 1
- FTPError: 553 Can't open that file: No such file or directory HOT 1
- Is there a way to do a file backup of only the changed files, on the server, before the new ones get deployed?
- Adding files to exclude doesnt remove from FTP.
- Problem with deleting folder HOT 2
- web.config missing from the deployment HOT 1
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 ftp-deploy-action.