1 Star 1 Fork 0

wyq / ghost-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 876 Bytes
一键复制 编辑 原始数据 按行查看 历史
13485 提交于 2018-08-24 09:24 . init
// # Ghost Startup
// Orchestrates the startup of Ghost when run from command line.
var express,
ghost,
parentApp,
errors;
// Make sure dependencies are installed and file system permissions are correct.
require('./core/server/utils/startup-check').check();
// Proceed with startup
express = require('express');
ghost = require('./core');
errors = require('./core/server/errors');
// Create our parent express app instance.
parentApp = express();
// Call Ghost to get an instance of GhostServer
ghost().then(function (ghostServer) {
// Mount our Ghost instance on our desired subdirectory path if it exists.
parentApp.use(ghostServer.config.paths.subdir, ghostServer.rootApp);
// Let Ghost handle starting our server instance.
ghostServer.start(parentApp);
}).catch(function (err) {
errors.logErrorAndExit(err, err.context, err.help);
});
1
https://gitee.com/wyqno1/ghost-blog.git
git@gitee.com:wyqno1/ghost-blog.git
wyqno1
ghost-blog
ghost-blog
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891