Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
M

Mario 0

@Mario 0
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Install packages on cloudron-host via apt
    M Mario 0

    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 ☀️

    Support

  • (API)Route not found > schema/diff
    M Mario 0

    Hi 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

    Directus

  • (API)Route not found > schema/diff
    M Mario 0

    Thanks 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

    Directus

  • (API)Route not found > schema/diff
    M Mario 0

    Perfect explanation! Thanks for your patience: know things are much clearer 🚀

    Directus
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search