fix(reverb): always start Reverb service in containers

This commit is contained in:
Andras Bacsai
2026-09-21 22:59:20 +02:00
parent 3ce4209a2f
commit 29b93c7ef0
3 changed files with 4 additions and 12 deletions
@@ -2,10 +2,5 @@
cd /var/www/html
if grep -qE '^PUSHER_ENABLED=false' .env 2>/dev/null; then
echo " INFO Reverb is disabled, sleeping."
exec sleep infinity
fi
echo " INFO Reverb is enabled, starting..."
echo " INFO Reverb is starting..."
exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}
@@ -2,10 +2,5 @@
cd /var/www/html
if grep -qE '^PUSHER_ENABLED=false' .env 2>/dev/null; then
echo " INFO Reverb is disabled, sleeping."
exec sleep infinity
fi
echo " INFO Reverb is enabled, starting..."
echo " INFO Reverb is starting..."
exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}
@@ -26,6 +26,8 @@ it('runs Reverb and terminal websocket services inside the Coolify containers',
->toContain('npm ci --prefix /terminal')
->and(file_get_contents(base_path(dirname($dockerfile).'/etc/s6-overlay/s6-rc.d/reverb/run')))
->toContain('exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}')
->not->toContain('PUSHER_ENABLED')
->not->toContain('Reverb is disabled')
->and(file_get_contents(base_path(dirname($dockerfile).'/etc/s6-overlay/s6-rc.d/terminal-server/run')))
->toContain('exec node /terminal/terminal-server.js')
->and(file_exists(base_path(dirname($dockerfile)."/etc/s6-overlay/s6-rc.d/reverb/dependencies.d/{$dependencyService}")))->toBeTrue()