Ghost is a free and open source publishing platform for building and running modern blogs, magazines, and journals.
This guide shows how to deploy a Ghost instance on Render in just a few minutes. This version uses a SQLite database stored on a Render SSD Disk so your data is saved across deploys and automatically backed up with daily snapshots.
As of Ghost 5, MySQL 8 is the only supported database for production deploys of Ghost. SQLite is only supported by Ghost 5 in a development environment.
Fork render-examples/ghost on GitHub or click ‘Use this template’.
Create a new Blueprint Instance on Render, and give Render permission to access your new repo.
In your Render Dashboard, navigate to the Environment tab for your newly created MySQL Private Service.
Copy the generated value of the
Navigate to the Environment tab for your newly created Ghost Web Service.
Create a new environment variable called
database__connection__passwordwith the value copied from the
MYSQL_PASSWORDenvironment variable of the MySQL Private Instance.
Use the Manual Deploy button to deploy the latest commit to your Ghost Web Service.
That’s it! This initial deploy will take a few minutes in which Ghost will create the needed database entries. Subsequent deploys of Ghost will not need to do that and will be much quicker as a consequence.
Your Ghost instance will be available on your
.onrender.com URL as soon as the deploy is live.
You can then configure Ghost by going to
https://your-subdomain.onrender.com/ghost and start creating content for your new site!
Render makes it easy to add a custom domain to your Ghost site, with free and fully managed TLS certificates. Follow the Render custom domains guide to add a domain to your site.
After adding and verifying your domain on Render, make sure to add the following environment variable to your Ghost service on Render. You can do this under the Environment tab.
url should be set to the primary domain for your site. If your custom domain is set up to redirect
www to the apex domain, set
See Running Ghost with config env variables for more information.
You can set up Ghost to send email using an external service like Mailgun which allows up to 10,000 emails per month for free.
See https://ghost.org/docs/concepts/config/#mail for how to get Mailgun credentials for your Ghost domain.
Once you have your credentials, set up the following environment variables under the Environment tab to start sending mail from Ghost.
correct horse battery staple
Render will automatically restart Ghost to apply your new settings.