directus minimal seed & seed instructions (#305)

This commit is contained in:
Ulf Gebhardt 2025-08-14 00:14:29 +01:00 committed by GitHub
parent cfd7ca1a26
commit 9b2ac9f74f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

View File

@ -23,6 +23,24 @@ npx directus-sync push \
--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
```
## Backup Database
Either keep a copy of the `/data/database` folder or run the following command to get an sql dump

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"
}
]
}