Align log messages across all service startup scripts (horizon, nightwatch-agent, scheduler-worker) in both development and production environments to use a consistent " INFO " prefix format.
11 lines
241 B
Bash
11 lines
241 B
Bash
#!/bin/sh
|
|
|
|
cd /var/www/html
|
|
|
|
if grep -qE '^HORIZON_ENABLED=false' .env 2>/dev/null; then
|
|
echo " INFO Horizon is disabled, sleeping."
|
|
exec sleep infinity
|
|
fi
|
|
|
|
echo " INFO Horizon is enabled, starting..."
|
|
exec php artisan horizon
|