You can’t. Heroku sets the PORT variable that you are supposed to bind, and listens on tcp/80.
More Related Contents:
- Can I use a file based database on Heroku?
- Allow CORS REST request to a Express/Node.js application on Heroku
- First Heroku deploy failed `error code=H10`
- Deploy Nodejs on Heroku fails serving static files located in subfolders
- Heroku app crashes after MongoDB updated to 3.0
- Unable to delete data from mongoDB
- Cannot overwrite model once compiled Mongoose
- ERR_HTTP_HEADERS_SENT: Cannot set headers after they are sent to the client
- How to separate routes on Node.js and Express 4?
- Cannot POST / error using express
- req.locals vs. res.locals vs. res.data vs. req.data vs. app.locals in Express middleware
- ExpressJS : How to redirect a POST request with parameters
- Node.js (with express & bodyParser): unable to obtain form-data from post request
- Print raw html strings on EJS
- How to create global variables accessible in all views using Express / Node.JS?
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
- Why can I execute code after “res.send”?
- How to deploy node app that uses grunt to heroku
- How to send an html page as email in nodejs
- What are “signed” cookies in connect/expressjs?
- Node.js, can’t open files. Error: ENOENT, stat ‘./path/to/file’
- How to know if user is logged in with passport.js?
- Why POST redirects to GET and PUT redirects to PUT?
- How can I get Express.js to 404 only on missing routes?
- Unable to Change Favicon with Express.js
- How to use socket.io in express routes?
- Express Router undefined params with router.use when split across files
- Connect or Express middleware to modify the response.body [closed]
- CORS-enabled server not denying requests
- Using multiple parameters in URL in express