๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป tech-note

How to upgrade Ghost?

NOTE: This post is about the prior version of Ghost (0.x). In version 1.0 or later, the Ghost official team supports a tool to upgrade your

NOTE: This post is about the prior version of Ghost (0.x). In version 1.0 or later, the Ghost official team supports a tool to upgrade your app via ghost command line tool.


Take the following steps, which is a short summary of the linked tutorial:

  • Download the latest Ghost and extract it

  • Delete core/, index.js, package.json

-->
1 min read
๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป tech-note

How to add a custom route to your Ghost blog?

First, create a custom route directory to your root. Originally I added my custom route files under core/server/, but since it is going to b

First, create a custom route directory to your root. Originally I added my custom route files under core/server/, but since it is going to be overwritten by updates on Ghost, it might be preferrable to make them agnostic about the core directory altogether.

Then, define your own custom routes in whatever way you want. Add routes, controllers, or middlewares,

-->
1 min read
๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป tech-note

What is `module.exports` in node.js?

According to the answer over Stack Overflow: module.exports is the object that's actually returned as the result of a require call. Also,

According to the answer over Stack Overflow:

module.exports is the object that's actually returned as the result of a require call.

Also, the exports variable is available on which you can add whatever variables you want to export, such as:

var thunderbolt = function() { ... };
exports.thunderbolt = thunderbolt;

, which is accessable from the exported environment:

var pikachu = require("pikachu"

-->
1 min read