Exclude files via script/deploy only dist directory
sc00 opened this issue · 1 comments
sc00 commented
Hi,
is it possible to exclude files like package.json from deployment via script + CLI as well? Or is it perhaps possible to only sync a specific directory like "dist"?
Thanks and cheers
SamKirkland commented
Yes! If you want to see the help section simply run the ftp-deploy
without any options.
Exclude expects an array of patterns to exclude. Because its an array specify the exclude option more than once.
Example (untested code):
ftp-deploy --server ftp.samkirkland.com --username test@samkirkland.com --password \"CrazyUniquePassword&%123\" --exclude dist/** --exclude **/.git* --exclude **/.git*/** --exclude **/node_modules/** --exclude **/package.json