Writing

← Writing

Ghost is not the most 😒

Updated almost 2 years

I've been in the serverless world a lot recently. Mostly Vercel and Netlify. Gatsby and NextJS. Love these.

I wrote recently how much I've been digging Ghost. Well I still am. The writing and content experience is amazing.

But...

I forgot how much of a pain managing a server is.

What happened

I've been standing the site up slowly. I have a full time job, and I've been freelancing on the side. And making videos...

Today I got around to fixing the email connection with Mailgun. It's all about that SSH.

The site is hosted on Digital Ocean and after remembering how to get into the backend I started following this guide on configuring the Mail.

Configuring Ghost

Everything was working fine until...

502 Bad Gateway

via GIPHY

The long and short of it is Ghost changed the default port and nGinx wasn't configured to allow that port.

Next time

  1. SSH into Ghost
  2. Check ghost config nano /var/www/ghost/config.production.json
  3. Check nginx

    [email protected]:/var/www/ghost$ sudo systemctl is-active ghost_chrisellis-dev active [email protected]:/var/www/ghost$ nano /var/www/ghost/config.production.json [email protected]:/var/www/ghost$ sudo systemctl stop ghost_chrisellis-dev [email protected]:/var/www/ghost$ sudo systemctl start ghost_chrisellis-dev [email protected]:/var/www/ghost\$

Stack Overflow

A small favor

Was anything I wrote confusing, outdated, or incorrect? Please let me know! Just write a few words below and I'll be sure to amend this post with your suggestions.

© 2022 Chris Ellis. All rights reserved.