I am building a website, where the landing page and some other content is based on node, express, angular2 etc.
I want to have a subdomain (blog.mydomain.com) which runs Hexo. On my development machine, I run hexo server
to test the blog on localhost:4000
. I can deploy to heroku by running hexo generate -deploy
. So I have two questions - if I had a node app, where one of the sub-directories contained my current hexo project, how would I deploy it, as if I just uploaded the content, what would trigger hexo to run?
Secondly, how to I route from my main app, to the blog? I have seen a number of suggestions to use vhost with express. Would I run the two servers through different ports, and then just route /blog
routes to0.0.0.0:4000
for example?