Report this

What is the reason for this report?

How do I upgrade to the latest version of directus on my Digital Ocean droplet?

Posted on July 1, 2022

How do I upgrade to the latest version of directus on my Digital Ocean droplet?

I have tried running the commands through terminal that are outlined in both of these articles but I must be missing something because it is not updating me to latest version of directus.

https://learndirectus.com/how-to-upgrade-directus/

When I run “npm update” I get the following message back:

“up to date, audited 1 package in 124ms”

But when I am logged into my directus package it is still showing that I am on directus version 9.9.0 and not the latest version



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Looking at their documentation the update is done via npm indeed so this is strange, but you can look at the following solution:

  1. Backup your project
  2. Run: npm update
  3. Run: npx directus database migrate:latest to update the DB
  4. Restart the Directus service to apply the changes.

Note that the update process might vary depending on your setup and installation method. If you still have trouble with the update, please let me know more about your setup or consider reaching out to the Directus community.

For more information about upgrading Directus, please refer to the official Directus documentation: https://docs.directus.io/self-hosted/upgrades-migrations.html

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.