Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
a3e2665646
21
README.md
21
README.md
@ -1 +1,22 @@
|
|||||||
# LaeCloud 莱云
|
# LaeCloud 莱云
|
||||||
|
|
||||||
|
### 主节点运行
|
||||||
|
```bash
|
||||||
|
docker run -itd --name=lae_schedule --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art schedule:work
|
||||||
|
|
||||||
|
docker run -itd --name=lae_workers --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work
|
||||||
|
```
|
||||||
|
|
||||||
|
### Web 节点运行
|
||||||
|
```bash
|
||||||
|
docker run -itd --name=lae --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art works
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### 单次执行 比如 migrate 或者 composer
|
||||||
|
```bash
|
||||||
|
docker run --rm --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte php
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
docker run --rm --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art
|
||||||
|
```
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => ['api', 'api/*', 'sanctum/csrf-cookie', 'broadcasting/*'],
|
'paths' => ['api', 'api/', 'api/*', 'sanctum/csrf-cookie', 'broadcasting/*'],
|
||||||
|
|
||||||
'allowed_methods' => ['*'],
|
'allowed_methods' => ['*'],
|
||||||
|
|
||||||
|
@ -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-web]
|
|
||||||
process_name=%(program_name)s_%(process_num)02d
|
|
||||||
directory=/opt/lae
|
|
||||||
command=php artisan works
|
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
stopasgroup=true
|
|
||||||
killasgroup=true
|
|
||||||
user=root
|
|
||||||
numprocs=1
|
|
||||||
redirect_stderr=true
|
|
||||||
stdout_logfile=/var/log/lae-web.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