Tweet new posts automatically

A must when blogging is of course to post a tweet whenever you publish a new post! It took me literally 15 minutes to set this up with Huginn.

Nginx, Ghost and https

When moving this blog from a temporary url to my main I got the dreadful "Too many redirects". There is a simple fix which I found here []. Add proxy_set_header X-Forwarded-Proto https; to the conf. Mine now looks like this: server { listen 443 ssl; ssl_certificate /etc/letsencrypt/live/; ssl_certificate_key /etc/letsencrypt/live/; server_name www.jonnev

Ghost and production

There are 2 things you need to do to get ghost to run in production mode with docker: Add the NODE_ENV docker run -d --name ghost -v /path/to/blog:/var/lib/ghost -e NODE_ENV=production -p 2368:2368 ghost This is for ghost v0.11.x. For v1.x.x have a look at this post []! Note: If you're having trouble with the permissions on files in the volume, for example when trying to pull/add a theme, add this to the command above: -u $(id -u $USER):$(id -g

Blog up and running

So I figured I wanted to have a blog and in the process redo my homepage. A friend recommended Ghost and when trying out their hosted Pro version I thought it looked great! This is for ghost v0.11.x. For v1.x.x have a look at this post []! I wanted a clean and simple theme and when looking through the Ghost marketplace I found Steam []. I had some experience with Handlebars already and I quickly glanced through the