Skip to content

Instantly share code, notes, and snippets.

@dshook
Created February 19, 2015 22:09
Show Gist options
  • Select an option

  • Save dshook/b4121f6a25d75486fdc3 to your computer and use it in GitHub Desktop.

Select an option

Save dshook/b4121f6a25d75486fdc3 to your computer and use it in GitHub Desktop.
Ghost Blog Index
var promise = require('bluebird');
global.Promise = promise;
var ghost = require('ghost');
var express = require('express');
var path = require('path');
var deploy = require('./deploy.js');
var app = express();
app.post('/deploy', deploy);
ghost({
config: path.join(__dirname, 'config.js')
}).then(function (ghostServer) {
app.use(ghostServer.config.paths.subdir, ghostServer.rootApp);
ghostServer.start(app);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment