Heroku + node.js: I have a server which uses multiple ports. How can I get Heroku to allocate them?
问题 Umm I'll try to be more clear.. In an application server I have written in node.js, I have inner-proxy for multiple ports: in my 8080 port I have my rest api . in my 3000 port I have my push server and chat . I use the npm package subdomain-router for inner-routing to the port, exposing sub-domains in the 'front-end' which proxy back to those ports. code demonstration: ( <some-app> is not the real name of the app obviously) require('subdomain-router') ({ host: '<some-app>.herokuapp.com',