0

I used the following command to create a never ending angular server and it's working.

forever start node_modules/@angular/cli/bin/ng serve --host {ip_address or domain} --prod

But what is the command to stop this infinite running server?

David
  • 33,444
  • 11
  • 80
  • 118
Krishna
  • 154
  • 4
  • 14

1 Answers1

1

Assign an id

forever start --uid "serve" node_modules/@angular/cli/bin/ng serve --host {ip_address or domain} --prod

Then you can use that id to stop it

forever stop serve

Just to clarify, ng serve uses webpack dev server, it's not suited for production

David
  • 33,444
  • 11
  • 80
  • 118