directus minimal seed & seed instructions

This commit is contained in:
Ulf Gebhardt 2025-08-10 22:12:54 +02:00
parent 4e6fb57042
commit b3938f724f
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 36 additions and 0 deletions

View File

@ -13,4 +13,22 @@ npx directus-sync push \
--directus-url http://localhost:8055 \
--directus-email admin@it4c.dev \
--directus-password admin123
```
## Seed Data for local development
Seed the development data via:
```
npx directus-sync seed push \
--directus-url http://localhost:8055 \
--directus-email admin@it4c.dev \
--directus-password admin123
```
## Seed Data - find differences
In order so see what changes would appear when seeding, you can execute:
```
npx directus-sync seed diff \
--directus-url http://localhost:8055 \
--directus-email admin@it4c.dev \
--directus-password admin123
```

View File

@ -0,0 +1,18 @@
{
"collection": "maps",
"meta": {
"insert_order": 1,
"create": true,
"update": true,
"delete": true,
"preserve_ids": false,
"ignore_on_update": []
},
"data": [
{
"_sync_id": "local-development",
"name": "Local Development",
"url": "http://local.development"
}
]
}