Running Express server alongside Ghost droplet

February 6, 2015 561 views

I want to build a Ghost blog with some extra functionality, based on a REST API (angular) and mongo database.

All of this may be straightforward when Ghost Apps are possible, but in the meantime (and pending any design advice...?) I'll need to provide that on a separate Express server (using a different port?). Is that possible on the $5 bundle (as that has more than enough capacity for the site as it currently stands)?

(Note: I don't (yet) know what Nginx is so apologies if that's basically the answer.)

1 Answer

Here is a good manual (written by Mitchell Anicas) on how to use PM2 to run node.js apps in production and how to use nginx as reverse proxy.

Basically what you need is to run Ghost and Express on different port. Than you can configure nginx reverse proxy either to use different ports too or different sub-domains on port 80.

$5 VPS is enough to run personal Ghost blog and small Express server simultaneously. I use such configuration. It uses about 80% of RAM, so don't count on adding third server app.

Hope this helps.

Have another answer? Share your knowledge.