Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to end ng serve or firebase serve

I've been doing web development with Angular2 and have been using both Angular2 and Firebase to run local servers. I haven't been able to find a command similar to typing quit when using Ionic to create a server, so I have to close the terminal tab each time. Is there a way to end the server and get my terminal tab back?

Thanks.

like image 348
aheigins Avatar asked Aug 22 '16 08:08

aheigins


People also ask

Where do you execute ng serve?

ng serve. To get the application running, the ng serve command must execute within the [name-of-app] folder. Anywhere within the folder will do. The Angular CLI must recognize that it is within an environment generated with ng new .

How do I change my host in NG serve?

Command-Line Options ng serve has built-in option flags to update host and port: --port : port to listen on; defaults to 4200. --host : host to listen on; defaults to localhost.


2 Answers

You can use the following command to end an ongoing process:

ctrl + c

like image 161
stijn.aerts Avatar answered Sep 22 '22 11:09

stijn.aerts


Try using ctrl + c twice to get the prompt for terminating the batch job.

like image 45
Paulo Cunha Avatar answered Sep 23 '22 11:09

Paulo Cunha