S
S
seserg7772019-07-25 13:02:58
Angular
seserg777, 2019-07-25 13:02:58

How to run Angular app without port in browser address bar?

There is an Angular application with SSR Universal. The application itself is launched using PM2. The site opens through http://site.ru:8080. It won't open without a port. How to run without a port in the address? Server.js has const PORT = process.env.PORT || 8080;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-07-25
@UPSA

Change the settings to port 80. 80 is the default port and you do not need to write it in browsers.
Attention, you will switch to https there is a different port by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question