Skip to main content

Supervisor for reverb

This enables the viewing tickets and more cool features on Ticaga.

Make sure you've edited the .env for Ticaga:

REVERB_APP_ID=
REVERB_APP_KEY=""
REVERB_APP_SECRET=
REVERB_PORT=8080
REVERB_SCHEME=http

Eg: if your APP_KEY is: base64:nY8Lx+y559iZtKILQGgJA7T1dRTqYN9B/YmSF/qcJZQ= remove the base64:

REVERB_APP_ID=23
REVERB_APP_KEY="nY8Lx+y559iZtKILQGgJA7T1dRTqYN9B/YmSF/qcJZQ="
REVERB_APP_SECRET=j897dehwdhnwed9hio23
REVERB_PORT=8080
REVERB_SCHEME=http

Just a random Secret and APP_ID.

Install Supervisor:

sudo dnf install epel-release -y
sudo dnf install supervisor -y

Configure set-up for Reverb:

sudo nano /etc/supervisord.d/reverb.ini

Paste in the configuration:

[program:reverb]
command=/usr/bin/php /var/www/ticaga/artisan reverb:start --host=0.0.0.0 --port=8080
directory=/var/www/ticaga
user=apache
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/www/ticaga/storage/logs/reverb.log
stderr_logfile=/var/www/ticaga/storage/logs/reverb-error.log
stopwaitsecs=3600

Enable Supervisor:

sudo systemctl enable supervisord
sudo systemctl start supervisord