forked from ctidigital/magento2-configurator
-
Notifications
You must be signed in to change notification settings - Fork 1
Create Maintain Modes
Aigars Bedeicis edited this page Aug 4, 2023
·
1 revision
This works for Category, CMS Pages/Blocks, Configuration
Depending on environments you might not want to have your configuration always overwriting content, i.e. live
To add this, in main configuration file for each type of component you can specify modes under each environment
pages:
enabled: 1
method: code
sources:
- app/etc/configurator/Pages/pages.yaml
env:
local:
mode: maintain
stage:
mode: maintain
live:
mode: create
maintain
- Always overwrite and maintain content, default mode. Versioning is not affecting this, but will store version number in database.
create
- Without versioning, this will only create content if it doesn't already exist. If version
is defined then it will update if the version stored in DB is lower than what is defined in yml files.