Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Before we start, I assume you've already installed Dokku on your server, configured all the things properly, installed dokku-mysql, created a new database (ex: ghost-db), created a new app for Ghost, let's call it simply ghost and linked them.
You need SSL certificate for your website. With Dokku you can add it in several ways, using official Let's Encypt plugin, or using your own certificate, or using a Cloudflare SSL. Any of these do, but don't neglect this step.
I started using Ghost as a headless cms for my personal website and it works like a charm, but I had to spend some time to try and deploy it using Dokku, that's what I am going to write about.
Before we start, I assume you've already installed Dokku on your server, configured all the things properly, installed dokku-mysql, created a new database (ex: ghost-db), created a new app for Ghost, let's call it simply ghost and linked them.