Search code examples
node.jsghost-blog

Ghost blog integrated with application


I am new to node, so please excuse me if I am asking stupid questions.

Ghost has been released as NPM module recently. I am trying to integrate it with my application, so I could have custom home page and serve blog on a separate page. Once I do following in my app.js, it takes over all the traffic to my site. How do I configure ghost to serve only the blog?

var ghost = require('ghost'); ghost();


Solution

  • We're missing a few details here so I'll make some assumptions.

    If you are hosting node using the default server than (as of this posting) you are out of luck since ghost is setup to run in it's own standalone server. One possible solution is to run both the standard node.js server for your page then another for ghost. That's obviously not ideal but until they fix their integration issues you don't have much choice.