How to change angular port from 4200 to any other

后端 未结 29 1865
心在旅途
心在旅途 2020-12-04 05:59

I want to use 5000 instead of 4200.

I have tried to create a file on root name ember-cli and put JSON according to the code below:

{
   &q         


        
29条回答
  •  生来不讨喜
    2020-12-04 06:21

    The solution worked for me was

    ng serve --port 4401    
    

    (You can change 4401 to whatever number you want)

    Then launch browser -> http://localhost:4401/

    Basically, I was having two Applications and with the help of the above approach now I am able to run both of them simultaneously in my development environment.

提交回复
热议问题