Elastic Path Production Tools

Running the Data Population CLI Tool

Running the Data Population CLI Tool

  • Ensure that the dataDirectory contains the following sub-directories:
    • config
    • data
    • environments
    • schema
  • Ensure that the dataDirectory specified is the parent directory of the four of the directories, not the data sub-directory.

Do one of the following:
  • For Linux-based Operating Systems, run data-population.sh.
  • For Windows-based Operating Systems, run data-population.bat.
For Linux-based operating systems that is running from the development environment
cd data-population/ext-data-population-cli/target/ext-data-population-cli-1.0-SNAPSHOT
./data-population.sh --dataDirectory ../../../../database/ext-data/target/classes/
        --configDirectory ../../../../database/ext-data/target/classes/environments/local
        [update-db|reset-db]

Example: For Windows-based operating systems that is running from development environment

cd data-population\ext-data-population-cli\target\ext-data-population-cli-1.0-SNAPSHOT
 
data-population.bat --dataDirectory ..\..\..\..\database\ext-data\target\classes\ --configDirectory ..\
..\..\..\database\ext-data\target\classes\environments\local [update-db|reset-db]

Example: For Linux from an external configuration directory

./data-population.sh --dataDirectory /home/epuser/ep/workspace/data-population --configDirectory /etc/ep/conf/prod-data-population/ [update-db|reset-db]