Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I shut down the local firebase emulators?

Currently I initialise the firebase emulators with:

$ firebase emulators:start

After some time working on it I want to stop it. How can I then stop the emulators?

like image 729
user1447414 Avatar asked Jul 01 '20 20:07

user1447414


People also ask

Can firebase be used locally?

The Firebase Local Emulator Suite is a set of advanced tools for developers looking to build and test apps locally using Cloud Firestore, Realtime Database, Cloud Storage, Authentication, Cloud Functions, Pub/Sub, Firebase Hosting and Firebase Extensions.

Is not open on localhost could not start firestore emulator?

This error is because of the failed quitting from firebase emulator. You already have the process of previous firebase emulator. For a new start, you have to find and stop the previous process.


Video Answer


2 Answers

  1. Check which process is occupying the port sudo lsof -i tcp:<port>
  2. Kill the process kill -9 <process id>
like image 182
xmkevinchen Avatar answered Oct 14 '22 02:10

xmkevinchen


according to this: https://github.com/firebase/firebase-tools/issues/1367 Ctrl+C kills the emulators

like image 25
Joaquin Hoffmann Avatar answered Oct 14 '22 03:10

Joaquin Hoffmann