Moving Blog from Github to Digital Ocean

Digital Ocean I once again moved my blog. I first moved from using Jekyll to using Ghost with a tool called Buster. I've documented this process already here. While this was great, it also had several different issues that I had to work around. Static pages were a pain in the butt to set up, and I was facing a weird error where the later pages in my blog (pages 6 and above) were redirecting to localhost instead of to the proper domain. After submitting different issue requests with the authors, I decided it would just be easier to just go through a host and set it up. I decided on Digital Ocean. They have a one click setup for Ghost and charge about $5/month.

I'm going to go over a high level overview (not step by step) of how I switched over. So this may be a bit hard to follow if you're completely new to all this.

  1. Export blog entries Go to "/ghost/settings/labs/" for your blog and export everything. It should save as a json file.
  2. Create an account with Digital Ocean and launch Blog Go to Digital Ocean an signup for an account. Create a Droplet at the lowest tier. Then click on "Applications" and select Ghost. Create Droplet!
  3. Set new password for root. Click "Access" in your console and log in with the password that was emailed to you and immediately set a new password.
  4. Create SSH access Follow their mostly standard procedure to setup SSH access.
  5. Setup Blog Go to the ghost blog (with given IP address) and go through the normal setup.
  6. Moving files over Tar your ghost instance on your local computer. Use 'scp' to send it over through SSH to your instance.
  7. Add theme and images Untar your tar file and move your theme into the /content/themes folder. Also move your images folder into /content. Switch to this theme.
  8. Add email settings Nano into your config.js file and add in your mail settings if you had it setup prior.
  9. Change blog url In your config.js file, change the blog url to your domain name.
  10. Change DNS Settings Go into your domain registrar and change the A records to the correct IP address. Or follow their docs here.

And that's it! Your blog should have successfully moved to your digital ocean instance!

What I Learned Today:
You recreate your memories every time you remember them.