如何运行" Deployd"端口80上,而不是端口5000的Web服务器。 [英] How to run "Deployd" on port 80 instead of port 5000 in webserver.

查看:140
本文介绍了如何运行" Deployd"端口80上,而不是端口5000的Web服务器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

进出口运行一个网站,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);

这篇关于如何运行" Deployd"端口80上,而不是端口5000的Web服务器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆