If you are doing some local Ghost Core development, or are simply curious what is happening to your Ghost data under the hood: There is a quick and easy way to visualize and browse your local Ghost database (or any SQLite .db files). 1. Download and install a SQLite DB Browser Here is a cross-platform open-source option: http://sqlitebrowser.org/ 2. Open Ghost's .db file Launch your SQLite Browser and click on "Open Database". Select the ghost-dev.db file found inside of your local ghost install i.e.: ghost-0.7.1/content/data/ghost-dev.db 3. You are in business!...
The other day I found myself in the unfortunate position of needing to scan through raw server logs to try and gather some information around a rare issue. Opening these log files in a text editor and doing a quick text search wasn't a great option: the log files had millions of log lines, were 500MB+ in size, and the text editors just gave up trying to search, multi-select, and extract the lines I needed. I've recently gotten into Python (initially as a requirement for a project at work), and while I still have a lot to learn, I have...
This tutorial will show you how to get a MongoDB image instance up and running with Docker Toolbox. Update: Since this tutorial was published, Docker introduced Kitematic, part of the Docker Toolbox to help with setting up Local Databases. Continue reading to see how to do this via Docker command line tools. Getting an instance of MongoDB up and running with Docker Toolbox is both easy and provides some nice benefits. Docker gives you the benefit of knowing that your code base will operate on any OS that supports Docker, which is quite extensive at this point. Also, as your...
(This tutorial assumes you are working on a Mac. Sorry, not sorry, Windows!) Purpose: to prevent pushing broken tests or erroneous code that could break your remote build. Getting Started Git has many 'hooks' that fire when important actions occur: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks You can take advantage of these hooks to automate tasks when they fire. In this tutorial we will create a pre-commit hook to automatically test our code and abort the commit if anything fails, to keep you or your team from from pushing bad code. Where to put your hook All git repos...
This tutorial is meant to extend the one I wrote about building your own custom Ghost theme. In that post I went over the basic template files that all Ghost themes are made of: default.hbs, index.hbs, and post.hbs. In this post we will create a custom 'About Us' page template that we can link to using [myghostblog.com]/about. It's really pretty straight forward. Let's get started! Getting Started First, create a new template file in the root of your Ghost theme's template directory. The name of this file will depend on the desired URL of your...