Exclude files or folders from being syncronized

Exclude files or folders from being syncronized

Om met Staging te werken moet je ingelogd zijn op cPanel, weet je niet hoe je hier komt? Volg dan dit artikel.

Navigeer via cPanel naar Staging&Static > Development.

File Syncronisation Options

When you deploy a phase to the next, all files that correspond to the standard folders of a WordPress, Joomla! or PrestaShop installation are syncronised and kept equal. That means that any files that were not in the original phase will be deleted. That also means that any other folders that are in your docroot and don't belong to the CMS standard folders are not synced.

Excluding files or folders from being syncronized

If you need to exclude some files or folders from being syncronized, you just need to create a file in the development/staging phase using the Code Editor. The file has to be named

.files_exclude

And there you have to include a list of files or folders you do not want to syncronize.E.g. you have a folder inside the /images folder named "customer" and you do not want to include that folder in the workflow.You just have to include it in the .files_exclude file like this:

images/customer                           
                                                                            
                                                                       
 

Including other files or folders in the syncronization

On the other hand, if you need to include some other folders in the workflow, e.g. a "downloads" or "pdfs" folder that you need to have consistent throughout the development cycle, you have to create a file in the development/staging phase using the Code Editor. The file has to be named

.files_include

Inside that file you have to add the list of files or folders that you want to include in the workflow, e.g. "downloads"

downloads


Contact

Liever persoonlijk contact?


Staat het antwoord op je vraag er niet tussen, of heb je liever persoonijk contact? Neem dan contact met ons op. We helpen je graag verder.