Move to docker
This commit is contained in:
parent
d83748852d
commit
48e4e483fa
@ -1,7 +1,11 @@
|
||||
# LaeCloud 莱云
|
||||
|
||||
### 主节点运行
|
||||
复制 supervisor/ 下的所有文件到 /etc/supervisor/conf.d 中,然后全部启动
|
||||
```bash
|
||||
docker run -itd --name=lae_schedule --restart=always -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art schedule:work
|
||||
|
||||
docker run -itd --name=lae_workers --restart=always -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work
|
||||
```
|
||||
|
||||
### Web 节点运行
|
||||
```bash
|
||||
|
@ -1,13 +0,0 @@
|
||||
[program:lae-schedule]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
directory=/opt/lae
|
||||
command=php artisan schedule:work
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
user=www
|
||||
numprocs=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/log/lae-schedule.log
|
||||
stopwaitsecs=3600
|
@ -1,13 +0,0 @@
|
||||
[program:lae-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
directory=/opt/lae
|
||||
command=php artisan queue:work --tries=3 --max-time=3600
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
user=www
|
||||
numprocs=8
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/log/lae-worker.log
|
||||
stopwaitsecs=3600
|
Loading…
Reference in New Issue
Block a user