I am running a nodejs server locally with Firebase emulators (using firebase emulators:start). I have another version running on google cloud functions - but I also need something running locally.
When errors happen, my whole node process dies, and the emulator dies etc... and I have to go back and restart the process manually. Is there a way to automatically restart it when an error happens, such as using forever? I tried with something like forever start firebase emulators:start but that didn't work.