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


Skip to content

Directus

62 Topics 607 Posts
  • Update to Directus 11

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    ruihildtR
    Ok this is solved. I tried to add the solved label, but I can't find it here. So thank you.
  • cannot install Directus CLI

    14
    0 Votes
    14 Posts
    3k Views
    J
    I've confirmed the latest version works without issue, following the steps I've outlined before. Essentially, Directus installed on Cloudron and hosting the frontend on another platform like Vercel (free plan). You need to install the Directus CLI on your local computer, edit the .env file with your Directus "Service Account" and you can deploy this solution. To be honest, based on it working, I would say another package with AgencyOS wouldn't be worthwhile once you get it deployed.
  • directus extension logs - how to view it in cloudron

    Moved
    2
    0 Votes
    2 Posts
    371 Views
    girishG
    @Jeyakumarrathnaselvi not sure but https://github.com/directus/directus/discussions/12855 suggested you have to use logger object .
  • Directus fail to create an user from Cloudron Open ID

    Moved
    14
    1 Votes
    14 Posts
    2k Views
    girishG
    @nennogabriel said in Directus fail to create an user from Cloudron Open ID: the new version of Directus on cloudron dos not use LDAP and you cannot use OPENID but CLOUDRON as variable. what do you mean by this? Why can we not use OPENID?
  • Connect to Postgres via environment variables

    2
    0 Votes
    2 Posts
    524 Views
    E
    I could successfully connect to a test postgres database with these environment variables: DB_HOST=IP DB_PORT=Port DB_DATABASE="db_name" DB_USER="user_name" DB_PASSWORD="password" Then I ran npx directus bootstrap to initialise the database. When I run commands like npx directus count table_name it provides correct answers indicating that the database connection works. However, for some reason, the database doesn't show up in my GUI.
  • Setup CI/CD for my directus cloudron

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    O
    I was able to deploy with cloudron my nextjs frontend app fetching my directus backend via API here is the repository with STEP-BY-STEP guide: https://github.com/alexmazaltov/nextjs-app-for-directus-vai-cloudron
  • Unable to Access Environment Variables in Vue.js App on Cloudron

    4
    1 Votes
    4 Posts
    759 Views
    nebulonN
    It is only created within the directus app instance. Different apps run isolated from one another on Cloudron. So if I understand you correctly, you are trying to build your own custom app next to directus? If so you need to set the source your own /app/data/env.sh with the export of the env var.
  • Unable to install extensions from the Directus Marketplace

    Solved
    5
    1
    0 Votes
    5 Posts
    2k Views
    nebulonN
    This should be fixed now with latest package. Unfortunately I found that if a previous extension installation failed, the database would contain that info, making it impossible to install the same extension again. So you may have to manually delete records from the database to get over this
  • 0 Votes
    3 Posts
    718 Views
    girishG
    There are some further notes in https://docs.directus.io/getting-started/architecture.html#versioning . For them, "Minor — A new feature or meaningful improvement to an existing feature: may or may not be breaking." I think Cloudron packaging has to follow what upstream does, otherwise, every minor release now becomes a major in Cloudron. Maybe best to turn off automatic updates for Directus and analyze each Cloudron package update?
  • Installing Directus Extensions

    Solved
    13
    2 Votes
    13 Posts
    3k Views
    andreasduerenA
    Seems to work like a charm!
  • Directs freezing in one data model after upgrade

    Solved
    5
    1
    1 Votes
    5 Posts
    876 Views
    andreasduerenA
    Yes seems to work thank you!
  • How to balance with other apps?

    4
    10
    0 Votes
    4 Posts
    755 Views
    robiR
    Those are only container upper limits, not what the apps will use. You can significantly increase the size of the swap file for more headroom, but things will slow down while swapping. You'll want more RAM as certain apps will use a lot more when you start heavier use. Cost wise, there are server providers that max RAM such as Contabo and SSDNodes at a decent price.
  • How to update/change a package.json in /app/code

    Locked Moved Solved
    9
    0 Votes
    9 Posts
    2k Views
    girishG
    Documented here - https://docs.cloudron.io/apps/directus/#custom-modules
  • Is 350ms ping on directus normal?

    2
    1 Votes
    2 Posts
    414 Views
    nebulonN
    Directus is using postgres on Cloudron, see https://git.cloudron.io/cloudron/directus-app/-/blob/master/CloudronManifest.json#L15 Regarding the ping, took me a bit to realize that you have to hover over that wifi signal strength icon. However on a fresh install here on a not so beefy server it shows values around 50ms. But more importantly I am not actually sure what this represents and what the usefulness of this is.
  • How to install npm packages in your app?

    Moved
    5
    0 Votes
    5 Posts
    1k Views
    D
    I've found this: https://docs.cloudron.io/apps/directus/ Example Link is not working: https://github.com/directus/directus/blob/main/api/example.env
  • Scaling/vCPU core usage of Directus in Cloudron

    4
    2 Votes
    4 Posts
    1k Views
    girishG
    @pbischoff said in Scaling/vCPU core usage of Directus in Cloudron: But this is a problem for almost every node.js app of the cloudron App Store, isn't it? Do they all use only one vCPU core? Apps like NodeBB (this forum) support so called cluster mode - https://nodejs.org/api/cluster.html . Essentially, this creates worker threads to spread load across CPU. This is part of nodejs. But to keep in mind, nodejs by itself can handle quite a bit of parallelism with just one CPU. Most of the work done by the main process is just http request processing. This is usually I/O bound and not CPU bound. Nodejs being asynchronous can handle requests in parallel in just one process quite easily. We are talking about 1000s of requests a second. Many other nodejs apps like Cloudron code itself, peertube, offload the processing of static assets to a side installation of nginx. So, when downloading images/css files etc, it doesn't even hit nodejs. When node code has to do heavy work, it usually just puts it in a queue and the queue handler is a separate process (which can thus be restarted and killed easily). The queue handler will use another cpu core. For directus, I am not an expert on the app. But, you want to maybe use some worker thread or queue or something like that to make use of more CPUs.
  • Unable to connect to a DigitalOcean managed database

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    S
    @girish said in Unable to connect to a DigitalOcean managed database: None of the feature like backup/restore will work So far, they've been working fine. Because, all that's required to be backed up in such cases is the app code. Of course, as the database is external, it is accepted that the backup system is external & independent to Cloudron. @girish said in Unable to connect to a DigitalOcean managed database: Not an expert on the apps and I don't know if it's the main purpose. But they work just fine with fresh databases as well where you use it like a nocode/locode app. Yes, pairing up with external databases is indeed, one of the primary features of these apps. And using a fresh database is just one of the features, and not always preferred. You might want to state clearly and prominently, particularly in the cases of such apps, that external connections are not allowed/recommended.
  • Unable to update, automatically or manually

    Solved
    5
    1
    0 Votes
    5 Posts
    885 Views
    girishG
    @devtron this should be out now. 1.24.1-2 is the correct package.
  • Directus not updating - manifest error

    Moved
    5
    2 Votes
    5 Posts
    1k Views
    girishG
    Same as https://forum.cloudron.io/topic/8451/unable-to-update-automatically-or-manually
  • Unable to set up s3 storage adapter

    Solved
    3
    0 Votes
    3 Posts
    831 Views
    S
    @girish Thanks! That was hasty on my part Yeah, i've always used the .env setup with a docker-compose install of Directus.