-1

I have been studying "ReactPHP", but I did not understand how to keep it running on the server if there is an error. I searched and found that "NodeJS" has "pm2" for keep online on the server or if there is an error it restarts, I would like to know if there is a program like PM2 for "ReactPHP"? and how to implement it?

thanks.

kelunik
  • 6,750
  • 2
  • 41
  • 70

1 Answers1

1

You can just start multiple processes with SO_REUSEPORT and have a generic process manager like SupervisorD handle the restarting of crashing processes.

kelunik
  • 6,750
  • 2
  • 41
  • 70