Angular (2) - Running two projects with the CLI

I was wondering if it is possible to work in two Angular (2) projects at the same time. I open my first project using ng serve, and it runs on the server, and when I save it, it is updated. But rude, when I try to open another project with ng serve, it will tell you that "port: 4200 is already in use." Is there a way to open a project on another port?

Seeing that this is a virtual server, I can’t think that just giving it a different port number can be difficult. I do not want to exit one project all the time, and then to the second and vice versa after changing only one line to see if it works.

Hi

+4
source share
2 answers

angular -cli, :

:

ng serve --host 0.0.0.0 --port 4201 --live-reload-port 4915

: https://github.com/angular/angular-cli

+4

Source: https://habr.com/ru/post/1669283/


All Articles