Closed Cannonb4ll closed 5 years ago
Can you install the latest version and try:
command=/usr/bin/laravel-echo-server start --dir=/home/user/domains/example.com/project
Also make sure that your laravel-echo-server.json file is in that directory.
Sadly enough, seems to keep returning the same errors.. :(
What version of node?
Version 7.4.0
Laravel echo server version: 1.2.4
Ok, will need to do some digging. Looks a dependency of inquirer which is a dependency of the CLI used to start the server.
Does this also start of you start the server from the command line or just when you try to run with supervisor?
Running it with command laravel-echo-server start
works perfect, the server boots right away then.
I have also tried to put the command inside a bash script and run that script with supervisor but same negative result.
Have you had any time to check upon this issue?
Have you tried using PM2 instead of supervisor?
https://serversforhackers.com/node-process-management-with-pm2 http://pm2.keymetrics.io/
I couldn't get supervisor to work either. I ended up using pm2. This comment was helpful: https://github.com/tlaverdure/laravel-echo-server/issues/65#issuecomment-258872299
it works use command like this:
command=/path/to/node /path/to/laravel-echo-server start --dir=/path/to/project_root
I wanted to have supervisor manage the laravel echo server, I have set it up like following;
The problem im getting is that the server is not booting, instead im getting errors like these inside the worker-echo-server.log: