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

2019-07-18 19:54发布

问题:

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:

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);