How to run “Deployd” on port 80 instead of port 50

2019-07-18 19:56发布

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"

Thank you.

1条回答
Viruses.
2楼-- · 2019-07-18 20:27

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);
查看更多
登录 后发表回答