首页 > 解决方案 > run a Node.js app from another Node.js app

问题描述

I have just deployed my first Node.js app on heroku. It's like a portfolio where I put links to other websites I built. However, these websites, with all their files included, are inside the root of my main website (So that I could use the same domain and hosting).

My front-end websites are working perfectly. On the other hand, I have got another Node.js app that I previously built, and I want it to be accessed through my main website. The path to server.js of my secondary Node app is like "./Portfolio/MyNodeApp/server.js", where "./" is the root directory of my main website. How can I do that?

标签: node.jsherokudeployment

解决方案


推荐阅读