forked from nataliemeurer/GhostAzureSetup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
19 lines (16 loc) · 620 Bytes
/
Copy pathindex.js
File metadata and controls
19 lines (16 loc) · 620 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// # Ghost bootloader
// Orchestrates the loading of Ghost
// When run from command line.
var express = require('express'),
ghost = require('./core'),
errors = require('./core/server/errors'),
// Create our parent express app instance.
server = express();
ghost().then(function (instance) {
// Mount our ghost instance on our desired subdirectory path if it exists.
server.use(instance.config.paths.subdir, instance.app);
// Let ghost handle starting our server instance.
instance.start(server);
}).catch(function (err) {
errors.logErrorAndExit(err, err.context, err.help);
});