Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: MAGNOLIA-7735 in two hides

...

Note

All bootstrap files are only imported once!

  • Webapp-based bootstrap files are imported during the first run of the webapp when the Magnolia instance gets installed.
  • Module-based bootstrap files are imported during the installation of the module.

If you want to import bootstrap files on every start up of the Magnolia instance or of a module, you must use custom installation tasks which are executed by the Module version handler or Module start up classes.

Hide block
Note

All bootstrap files are only imported once!

  • Webapp-based bootstrapping is triggered by the WebappBootstrap task only during the first run of the webapp and only after all modules have been installed.
  • Module-based bootstrap files are imported during the first installation of the module.

If you want to import bootstrap files on every start up of the Magnolia instance or of a module, you must use custom installation tasks which are executed by the Module version handler or Module start up classes.

Bootsrapping on the webapp level

...

By default the bootstrapping directories on the webapp level are:

Location 

WEB-INF/bootstrap/author

Files will only be imported if the current context is an author context.
WEB-INF/bootstrap/commonFiles will be imported on any context.

...

The directory should contain XML files for initialization of a blank Magnolia instance. If no content is found in any of the repositories, they are initialized by importing the XML files found in this directory. 

Hide block

The directory should contain XML or YAML files for initialization of a blank Magnolia instance. If no content is found in any of the repositories, they are initialized by importing the XML or YAML files found in this directory.

Bootsrapping on a module level

...