停止无限运行Angular Server的命令 [英] Command to Stop infinte running Angular Server

查看:214
本文介绍了停止无限运行Angular Server的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令创建了永无止境的角度服务器,并且该服务器正在运行.

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?

推荐答案

分配ID

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

然后您可以使用该ID停止

Then you can use that id to stop it

forever stop serve

请澄清一下, ng serve 使用webpack开发服务器,它不适合生产

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

这篇关于停止无限运行Angular Server的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆