style(docker): standardize service startup log message format
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.
This commit is contained in:
parent
638f1d37f1
commit
c28fbab36a
6 changed files with 12 additions and 12 deletions
|
|
@ -3,9 +3,9 @@
|
|||
cd /var/www/html
|
||||
|
||||
if grep -qE '^HORIZON_ENABLED=false' .env 2>/dev/null; then
|
||||
echo "horizon: disabled, sleeping."
|
||||
echo " INFO Horizon is disabled, sleeping."
|
||||
exec sleep infinity
|
||||
fi
|
||||
|
||||
echo "horizon: enabled, starting..."
|
||||
echo " INFO Horizon is enabled, starting..."
|
||||
exec php artisan horizon
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
cd /var/www/html
|
||||
|
||||
if grep -qE '^NIGHTWATCH_ENABLED=true' .env 2>/dev/null; then
|
||||
echo "nightwatch-agent: enabled, starting..."
|
||||
echo " INFO Nightwatch is enabled, starting..."
|
||||
exec php artisan nightwatch:agent
|
||||
fi
|
||||
|
||||
echo "nightwatch-agent: disabled, sleeping."
|
||||
echo " INFO Nightwatch is disabled, sleeping."
|
||||
exec sleep infinity
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
cd /var/www/html
|
||||
|
||||
if grep -qE '^SCHEDULER_ENABLED=false' .env 2>/dev/null; then
|
||||
echo "scheduler-worker: disabled, sleeping."
|
||||
echo " INFO Scheduler is disabled, sleeping."
|
||||
exec sleep infinity
|
||||
fi
|
||||
|
||||
echo "scheduler-worker: enabled, starting..."
|
||||
echo " INFO Scheduler is enabled, starting..."
|
||||
exec php artisan schedule:work
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
cd /var/www/html
|
||||
|
||||
if grep -qE '^HORIZON_ENABLED=false' .env 2>/dev/null; then
|
||||
echo "horizon: disabled, sleeping."
|
||||
echo " INFO Horizon is disabled, sleeping."
|
||||
exec sleep infinity
|
||||
fi
|
||||
|
||||
echo "horizon: enabled, starting..."
|
||||
echo " INFO Horizon is enabled, starting..."
|
||||
exec php artisan horizon
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
cd /var/www/html
|
||||
|
||||
if grep -qE '^NIGHTWATCH_ENABLED=true' .env 2>/dev/null; then
|
||||
echo "nightwatch-agent: enabled, starting..."
|
||||
echo " INFO Nightwatch is enabled, starting..."
|
||||
exec php artisan nightwatch:agent
|
||||
fi
|
||||
|
||||
echo "nightwatch-agent: disabled, sleeping."
|
||||
echo " INFO Nightwatch is disabled, sleeping."
|
||||
exec sleep infinity
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
cd /var/www/html
|
||||
|
||||
if grep -qE '^SCHEDULER_ENABLED=false' .env 2>/dev/null; then
|
||||
echo "scheduler-worker: disabled, sleeping."
|
||||
echo " INFO Scheduler is disabled, sleeping."
|
||||
exec sleep infinity
|
||||
fi
|
||||
|
||||
echo "scheduler-worker: enabled, starting..."
|
||||
echo " INFO Scheduler is enabled, starting..."
|
||||
exec php artisan schedule:work
|
||||
|
|
|
|||
Loading…
Reference in a new issue