Fix startup migrations

This commit is contained in:
gabdevele
2026-06-02 19:26:27 +02:00 Unverified
parent 47cb69b829
commit a41911db39
4 changed files with 34 additions and 2 deletions
+18
View File
@@ -29,6 +29,24 @@ cmake --build build
The API listens on `http://localhost:5555`.
MailHog listens on `http://localhost:8025`.
Local seeded admin:
- email: `[email protected]`
- password: `ChangeMe123!`
- the account has `must_change_password = true` and is for local development only.
If you already had a MySQL volume from the old scaffold, create the local
database/user once:
```bash
docker compose exec -T mysql mysql -uroot -proot -e \
"CREATE DATABASE IF NOT EXISTS visione CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE USER IF NOT EXISTS 'visione'@'%' IDENTIFIED BY 'visione'; \
ALTER USER 'visione'@'%' IDENTIFIED BY 'visione'; \
GRANT ALL PRIVILEGES ON visione.* TO 'visione'@'%'; \
FLUSH PRIVILEGES;"
```
```bash
curl http://localhost:5555/api/v1/health
curl http://localhost:5555/api/v1/ready