N
N
Nikita Kudrin2021-04-12 01:33:28
Heroku
Nikita Kudrin, 2021-04-12 01:33:28

How to put an Express.JS app on Heroku with a domain?

I wrote a simple application in express.js (when accessing / returns Hello world!), But I ran into a problem: what port should I specify in app.listen if a domain is bound to my heroku application?
I tried to specify 80 but it returned me an error Error: listen EACCES: permission denied 0.0.0.0:80
I also specified 0 but it didn't return anything
Please help me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alice, 2021-04-12
@w3bsmes

Hold

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question