node.js - 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?
解决方案
推荐阅读
- matlab - 值不属于状态的 ODE 事件
- python - 如何从字典和使用条件在现有 df 中创建列?
- excel - 需要一个公式/宏/VBA,它可以根据另一个单元格在工作表中复制/移动数据
- r - rlang::exec 带有函数的包规范
- magento2 - 如何在 Magento2 网站的首屏内容上方提高移动视图中的 CLS 分数?
- python-3.x - 无法导入 mlflow,出现 ModuleNotFoundError: No module named 'mflow'
- javascript - chart.js 折线图不显示超过图表中某个点的线
- excel - Excel - 两列 - 删除重复值购买比较行中的对
- python-3.x - AttributeError:“numpy.ndarray”对象没有属性“unsqueeze”
- android-studio - Android Studio 中的并行堆栈在哪里