-
Notifications
You must be signed in to change notification settings - Fork 511
Best Practice Running Laravel Echo Server as Background Service #65
Comments
I'm running it with supervisor right now. Working perfectly for me, on my production server I've done the same except I had to use an absolute path to |
@pfeiferchristopher Thank You, I Will Try It With Supervisor |
Here's a copy of the supervisor config file I have for my echo server for a rough guideline (on a vagrant machine)
|
example pm2 configuration: echo.json:
command:
|
@andkom Just to clarify though, using PM2 doesn't help with regard restarting the process if it exits? You'd still need supervisor/upstart etc? |
Is there a way to kill/restart the Laravel Echo Server when/if a new configuration goes live? This would be something akin to how Laravel allows you to restart your queue workers: |
Does no one ever need to restart their Echo server? |
will restart echo process |
You can also just restart with supervisor. Don't know if there is a 'graceful' restart, but with the latest echo, the clients should just reconnect when the server is back. |
Thanks, @barryvdh. I finally had time to look into that. I probably should have looked there first. |
@andkom How to call with config file |
That json config file it will be loaded by default. You need to run the server in the directory where the config file is placed |
I cant set PM2 (2.6.1) on Windows 7 with Node v8.1.4 PM2 Log: C:\USERS\WALTER\APPDATA\ROAMING\NPM\LARAVEL-ECHO-SERVER.CMD:1 I'll try to run laravel-echo-server from a .bat and start the .bat with the Windows task scheduler or try to make work Supervisord on Windows creating a service with cygwin and python.. :/ |
@jartaud tell me if you can run the daemon with this https://github.com/coreybutler/node-windows |
Same as @wa05 |
Systemd unit:
|
Finally Im running it with windows task manager.. |
Hey Barry if you don't mind its little bit late but i was asking i want to start laravel-echo-server but i have dist folder after running npm build which includes index.html file how can start this |
hi, i want to ask
are there any best practice using Laravel Echo Server On Production Server as background service
like queue process on laravel documentation suggestion using supervisord,
is Laravel Echo Server can be run with pm2 or nodaemon?
thanks a lot
The text was updated successfully, but these errors were encountered: