How to run “Deployd” on port 80 instead of port 5000 in webserver.

时光怂恿深爱的人放手 提交于 2019-12-24 00:09:57

问题


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


来源:https://stackoverflow.com/questions/17263545/how-to-run-deployd-on-port-80-instead-of-port-5000-in-webserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!