简体   繁体   English

如何在根路径下将mean.js模块部署到cloudfoundry

[英]How to deploy mean.js module to cloudfoundry at root path

I created a mean.js module "test". 我创建了一个mean.js模块“测试”。 Everything works fine but it is only reachable under .../test/#/ . 一切正常,但只能在... / test /#/下访问。 I need to deploy this to the root path (on cloudfoundry). 我需要将其部署到根路径(在cloudfoundry上)。 I don't want to change the core package. 我不想更改核心软件包。 What is the right way to achieve this. 什么是实现此目标的正确方法。

You need config your web server (eg Nginx) to point the root to your folder. 您需要配置Web服务器(例如Nginx)以将根指向文件夹。 An exmpale: 例子:

server {
    location / {
            root .../test/;
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM