Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration

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.

Last updated 3 years ago.
0

I used supervisor to run the brainsocket server. Here's a tutorial on how to setup supervisor.

https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps

Last updated 3 years ago.
0

With a simply, but not professional method: Use gnu-screen (screen) and run command inside a screen close it, and close terminal. :)

  • screen -S my_screen_name (create)
  • start command
  • press ctrl+a+d to close current screen
  • screen -r my_screen_name (to open a closed screen)

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

forddyce forddyce Joined 2 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.