continuous integration - How to exclude root page from CI in Kentico 10? -
we have kentio ci enabled , not considering disabling it. situation have ssl enabled on pages on kentico site that's deployed on server keep ssl disabled when developing locally.
i aware ssl can enabled going document root settings , setting "require ssl" radio "yes". works great , want.
the problem because locally have setting set "no" , have ci enabled, when deploy server local setting overrides server , server root page gets setting set "no" , have manually switch it.
i know there ways include , exclude objects ci process modifying repository.config file , according docs here, possible exclude individual objcects ci process. of particular note line in docs:
to exclude pages (the cms.document object type), use alias path values instead of code names. identifies pages based on location in content tree.
i have attempted exclude root page of site following code in repository.config
:
<objectfilters> <excludedcodenames objecttype="cms.document">/</excludedcodenames> </objectfilters>
without line modifications root document noted modification git expected upon adding line git marks doc deletion below screenshot:
maybe expected behaviour, don't know.
i know how individual page exclusion ci can achieved. appreciated.
what's on screenshot expected behavior - it's totally don't want do. ci restoration first deletes documents , objects , imports what's in ci folder. deleting root document prevent importing other document there no "parent" it. , if wasn't case, have transfer changes root document manually.
the best practice absolutely set ssl on dev machines brenden suggested.
another option utilizing documentevents
, changing ssl setting based on criteria (e.g. current domain name). brings in unnecessary error proneness.
Comments
Post a Comment