Ok, thanks! Then we've to implement the whole deploy process inside the container (lamp app) and leave the host untouched. Wish you a nice weekend ️
Mario 0
Posts
-
Install packages on cloudron-host via apt -
(API)Route not found > schema/diffHi there,
I'm trying to connect to server.tld/schema/diff & ./schema/apply via method POST but my instance always replies with a 404 "route not found".
- Version is 11.12.0
- (API)User has Admin-Permissions
- for example ./schema/snapshot is just working fine
Could it be that these two endpoints are "blocked" in cloudron directus apps? Can we "activate" them? Or should they work and the problem sits in front of the screen
Kind regards
Mario -
(API)Route not found > schema/diffThanks a lot for your support 🤩
The "problem" was that I tried to send "pure" JSON to the diff-endpoint and this ended up in route not found (IMO not the best hint).
With parsing json to yaml--data "$(yq .data schema.json)"
the endpoint worked like expected.But why ist JSON not working!?
[...]Compare the current instance's schema against the schema snapshot in JSON request body and retrieve the difference. [...] Alternatively, upload a JSON or YAML schema file. (ref: https://directus.io/docs/api/schema#retrieve-schema-snapshot)
Also I'm wondering if my approach is the "best" solution:
- schema/snapshot > prod.json
- work on the snapshot schema locally and track/commit changes to git-repo (prod.json > local.json)
- schema/diff (edited) local.json against server > diff.json
- schema/apply diff.json on server
Thanks for your support
Mario -
(API)Route not found > schema/diffPerfect explanation! Thanks for your patience: know things are much clearer