如何运行" Deployd"端口80上,而不是端口5000的Web服务器。端口、而不是、服务器、Deployd

2023-09-11 23:44:48 作者:孤傲何妨

进出口运行一个网站,deployd我有问题要更改端口5000上运行端口80。我的应用程序了我想要做的是不是有mydomain.com:5000,我只是想有mydomain.com

Im running a website with "deployd" and I having issues to change my applicaiton of running on port 5000 to port 80. What I want to do is instead of having "mydomain.com:5000", I just want to have "mydomain.com"

感谢您。

推荐答案

据内部API这些文档: http://docs.deployd.com/docs/developing-modules /internal-api/server.html

According to these docs of the internal API: http://docs.deployd.com/docs/developing-modules/internal-api/server.html

您可以在选择对象通过创建服务器时。因此,这样的事情应该工作

You can pass in an options object when creating the server. So something like this should work

var deployd = require('deployd'),
    options = {
      port : 80
    },
    server = deployd(options);