NodeJS Express - separate routes on two ports

后端 未结 2 1100
孤街浪徒
孤街浪徒 2020-12-23 21:12

I have an express server, and while building it created several \"helper\" functions on their own routes. I\'d like those routes to be accessed on a different port. Is ther

2条回答
  •  滥情空心
    2020-12-23 21:53

    If you are trying to create multiple servers then why not crate multiple bin/www files with different ports and configurations. Another way could be pass port number directly from command line.

提交回复
热议问题