diff --git a/README.md b/README.md index d49716f..270a7a0 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ### 主节点运行 ```bash docker run -itd --name=lae_schedule --init --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 --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=default,host-cost +docker run -itd --name=lae_worker --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=default,host-cost ``` ### Web 节点运行 diff --git a/bin/add_art.sh b/bin/add_art.sh new file mode 100644 index 0000000..744407b --- /dev/null +++ b/bin/add_art.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +mkdir -p /opt/lae + +{ + echo "alias latte='docker run -it --rm --init --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte'" + echo "alias art='docker run -it --rm --init --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte php /opt/lae/artisan'" + echo "alias composer='latte composer'" + echo "alias php='latte php'" + echo "alias lae='cd /opt/lae'" +} >>~/.bashrc + +echo "Done! Please run 'source ~/.bashrc' to make it work." diff --git a/bin/restart_all.sh b/bin/restart_all.sh new file mode 100644 index 0000000..1564cd4 --- /dev/null +++ b/bin/restart_all.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker restart lae lae_schedule lae_worker diff --git a/bin/restart_queue.sh b/bin/restart_queue.sh new file mode 100644 index 0000000..6112dfd --- /dev/null +++ b/bin/restart_queue.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +art queue:restart diff --git a/bin/restart_schedule.sh b/bin/restart_schedule.sh new file mode 100644 index 0000000..37691be --- /dev/null +++ b/bin/restart_schedule.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker restart lae_schedule diff --git a/bin/restart_web.sh b/bin/restart_web.sh new file mode 100644 index 0000000..359609f --- /dev/null +++ b/bin/restart_web.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker restart lae