I have a site setup with Brain Socket, now i have ssh access to my hosting and have my port 8080 opened.
I have been running this command php artisan brainsocket:start using screen command in terminal to make the process goes on forever even after i close my terminal. Problem is the next day I login again the screen is dead and the socket server closed.
How do you properly setup a brainsocket server? I googled using nohup could be a solution. But I have no idea how this works, I need step by step.
I used supervisor to run the brainsocket server. Here's a tutorial on how to setup supervisor.
With a simply, but not professional method: Use gnu-screen (screen) and run command inside a screen close it, and close terminal. :)
Alos, user screen -ls to list your current screens
And yes, supervisor is more better then this, screen not restart your command if it fails.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community