Skip to content

Commit 54e6d66

Browse files
committed
[feature] support for php worker hot load
1 parent 8a090f3 commit 54e6d66

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ services:
123123
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
124124
volumes_from:
125125
- applications
126+
volumes:
127+
- ./php-worker/supervisord.d:/etc/supervisord.d
126128
depends_on:
127129
- workspace
128130
extra_hosts:

php-worker/supervisord.conf

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,5 @@ port = 127.0.0.1:9001
66
[rpcinterface:supervisor]
77
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
88

9-
[program:laravel-worker]
10-
process_name=%(program_name)s_%(process_num)02d
11-
command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon
12-
autostart=true
13-
autorestart=true
14-
numprocs=8
15-
redirect_stderr=true
9+
[include]
10+
files = supervisord.d/*.conf
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[program:laravel-worker]
2+
process_name=%(program_name)s_%(process_num)02d
3+
command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon
4+
autostart=true
5+
autorestart=true
6+
numprocs=8
7+
redirect_stderr=true

0 commit comments

Comments
 (0)