Elastic Path Production Tools

Populating the Database

Populating the Database

  • Ensure that the following modules in the extension module are built:
    • ext-core
    • ext-importexport
    • ext-data-population
When you create a valid catalog using an import XML file, you must save the file at rel-1.0-data/importexport module. For testing the application, you can use demo data that Elastic Path provides. For example, demo-geometrixx-data, demo-mobee-data or demo-snapitup-data. When you add valid data, ensure that the corresponding objects in the demo data are removed.

You can also create a test data that you don't want to use in the production environment at test-data/importexport module.

Use this procedure to populate database with valid data for production.
  1. To populate a new database or to re-populate an existing database, navigate to the extensions/database module and run the following command:
    mvn clean install -Preset-db
  2. To update an existing database, navigate to the extensions/database module and run the following command:
    mvn clean install -Pupdate-db

    When data population is complete, remove demo data details from the Liquibase change log and delete demo data modules.