Merge pull request #1458 from larastarscn/master

[feature] support for php worker hot load
This commit is contained in:
Mahmoud Zalt 2018-04-04 17:35:29 +03:00 committed by GitHub
commit ebeb9e43f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -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:

View File

@ -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

View File

@ -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