File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ In your `docker-compose` file we need to add the `schema-sync` so that we can co
5353``` yaml
5454// docker-compose.yaml
5555volumes :
56- - ./schema-sync:/directus/schema-sync
56+ - ./schema-sync:/directus/schema-sync
5757` ` `
5858
5959(re)Build and run your container.
@@ -75,12 +75,12 @@ docker compose exec -it my-directus npx directus schema-sync install --force
7575
7676 1. `npm install directus-extension-schema-sync`
7777 2. Then run `directus schema-sync install` to install the extension's columns in the database and add the config folder
78- 4 . Edit the ` config.js ` in the schema directory and add your collections you want to sync
79- 5 . Finally run ` directus schema-sync export ` to export the schema and data from the Directus API
78+ 3 . Edit the `config.js` in the schema directory and add your collections you want to sync
79+ 4 . Finally run `directus schema-sync export` to export the schema and data from the Directus API
8080
8181# # 2 Configuration
8282
83- View and edit the schema-sync/* _ config.js_ file to include the collections you want to sync.
83+ View and edit the schema-sync/*_config.js_ file to include the collections you want to sync.
8484
8585To automatically import and export the schema and data, set the `SCHEMA_SYNC` environment variable to `IMPORT`, `EXPORT` or `BOTH`.
8686In production it is advised to set `SCHEMA_SYNC` to `IMPORT` and in local development to `BOTH`.
You can’t perform that action at this time.
0 commit comments