Perfect explanation! Thanks for your patience: know things are much clearer
Mario 0
Posts
-
(API)Route not found > schema/diff -
(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/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 -
Install packages on cloudron-host via aptOk, 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
️
-
Install packages on cloudron-host via aptHello Cloudron-Community,
I'm new to cloudron an therefore I may excuse for a maybe stupid question upfront.
Is it OK to install packages, for example
apt install git
on the cloudron host or is it recommended not to install any other packages beside cloudron on the host.
I wonder because my shell is telling me
"Please do not run apt upgrade manually as it will update packages that
Cloudron relies on and may break your installation. Ubuntu security updates
are automatically installed on this server every night."and I couldn't find any information or best practices regarding "install software on cloudron host (and how to maintain them)".
Befor you ask why: I'd like to run "git pull" on the host within a LAMP-App (/home/yellowtent/appsdata/container-uuid/data/public/) an not via the app-terminal where git is available. Or do I oversee something and there are "better" solutions for this specific scenario/request?
Thanks for your help
Mario