To enable bootstrapping in light modules install the Content Importer module.
Bootstrap files are used to load content into the JCR. Bootstrap files make it easier to share content across Magnolia instances. In light modules bootstrap files are typically used to load content such as pages, assets and others.
How bootstrapping in light modules works
- Export JCR data from Magnolia's AdminCentral.
- Place the exported files in the bootstrap folder on the file system of a running Magnolia instance. See Setting the bootstrap directory.
- When Magnolia detects a change in the bootstrap directory it sends a task to the Pulse.
superuserassigns himself the task and imports the content into the corresponding workspace in the JCR.
See How content import works for a more detailed explanation.
Bootstrap files can also be imported or bootstrapped manually using the import actions in the JCR Browser and many other apps. However, the content of this page is limited to importing bootstrap files in the Pulse and the term "bootstrapping" is used in this context only.
Using bootstrap files
Things to note about bootstrap files:
- Bootstrap files are only detected on a running Magnolia instance. The bootstrap directory is not observed on startup. Add your bootstraps after starting Magnolia.
- Deletions are not removed automatically. To remove content, delete it in the JCR and the bootstrap directory.
superuserpermissions are required to import content in the Pulse.