Skip to content

Using this tool within a development team

Jelle Siderius edited this page Aug 22, 2022 · 2 revisions

The easiest way to share database configurations within a development team is to set up a private repository with the config/databases/production.json and config/databases/staging.json files. After this step, you can symlink the files.

In this example mage-db-sync-databases is the private team repository.

Navigate to mage-db-sync/config/databases and symlink the files

ln -s ../../../mage-db-sync-databases/staging.json staging.json
ln -s ../../../mage-db-sync-databases/production.json production.json
ln -s ../../../mage-db-sync-databases/custom-commands custom-commands