Command to Stop infinte running Angular Server

≡放荡痞女 提交于 2019-12-11 17:58:57

问题


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?


回答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



来源:https://stackoverflow.com/questions/49359290/command-to-stop-infinte-running-angular-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!