Deploy on a VPS

How to setup LumeCMS on a VPS with live preview and versioning.

The best experience using LumeCMS is when it's connected to Lume, so it can generate live-previews with the changes. It can also manage the git repository in order to pull and push changes to the remote repository and create different versions using branches.


You need a server with Ubuntu 24.04. Other Linux versions can work but only Ubuntu 24.04 has been tested so far. Hetzner or Digital Ocean are good solutions if you need a cheap and fast VPS for less than 5$/month.

You also need a domain or subdomain to run the CMS. To do that, in the DNS settings of your domain, add a A record with the IPv4 address of the hosting server.


A good idea is to use a subdomain like cms or admin. For example, if the site you want to manage is, the CMS would be at or


In the repository cms-deploy there's a script to setup LumeCMS automatically. The script does not only install LumeCMS but also:

  • Install/update the required packages of the OS (Deno, Git, Caddy, etc).
  • Setup a HTTPS server with Caddy and configures a firewall with ufw.
  • Clone the Git repository of the website and configure LumeCMS to push/pull changes to it.
  • Create services with systemctl to ensure the CMS is always live, restarting it if something fails.
  • Configures a cron to restart the service if the CPU usage is above 95% (see this Deno issue).

To execute the script, log in to the server throught SSH and run the following:

curl > && sh

This command will download the script from the repository and execute it.


At some points, the script will ask you to confirm some steps (like install packages, etc) that you have to allow.

The installation process will ask you for some info:

URL of the repository
The SSH URL of the git repository, like
It's used for git commits and to create the SSL certificate.
The domain for the CMS, for example
It's used to log in the CMS. By default is admin
The password to access to the CMS.

During the process, it will generate a deploy key that you must add to GitHub:

  • When you see the key in the terminal, copy it to the clipboard.
  • Go to the GitHub repository: Settings > Deploy keys > Add deploy key
  • Paste the key.
  • Check the Allow write access option. It's required to push changes to the repository.
  • Once the key is added, press Enter in the terminal to continue the installation.

When the script finishes, you should be able to access to the CMS from your browser.


The first time to access to the CMS may take a little longer because the site is being build and Deno needs to download all dependencies.


You can see a demo at

  • User: admin
  • Password: demo

In the demo you can edit the content of a blog, create different versions (which are stored in local git branches) and even publish the changes of the main branch (to push the changes of main to your remote repository).

The remote repository for this demo is cms-demo-live.