Merge pull request #1458 from larastarscn/master
[feature] support for php worker hot load
This commit is contained in:
commit
ebeb9e43f3
|
@ -123,6 +123,8 @@ services:
|
||||||
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- applications
|
- applications
|
||||||
|
volumes:
|
||||||
|
- ./php-worker/supervisord.d:/etc/supervisord.d
|
||||||
depends_on:
|
depends_on:
|
||||||
- workspace
|
- workspace
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
|
|
@ -6,10 +6,5 @@ port = 127.0.0.1:9001
|
||||||
[rpcinterface:supervisor]
|
[rpcinterface:supervisor]
|
||||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||||
|
|
||||||
[program:laravel-worker]
|
[include]
|
||||||
process_name=%(program_name)s_%(process_num)02d
|
files = supervisord.d/*.conf
|
||||||
command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon
|
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
numprocs=8
|
|
||||||
redirect_stderr=true
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
[program:laravel-worker]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
numprocs=8
|
||||||
|
redirect_stderr=true
|
Loading…
Reference in New Issue