mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
调整dockerfile中的脚本
This commit is contained in:
@@ -11,8 +11,6 @@ cp /var/www/html/docker/zz-phpfpm.conf /usr/local/etc/php-fpm.d
|
|||||||
|
|
||||||
# 运行redis
|
# 运行redis
|
||||||
# nohup redis-server --requirepass "" &
|
# nohup redis-server --requirepass "" &
|
||||||
# 运行定时任务
|
|
||||||
nohup php /var/www/html/think timer --local --quit &
|
|
||||||
|
|
||||||
# 输出参数
|
# 输出参数
|
||||||
echo "参数为:$@"
|
echo "参数为:$@"
|
||||||
@@ -20,6 +18,8 @@ echo "参数为:$@"
|
|||||||
# TODO:增加自动批量运行并阻塞的脚本,比如:group default ,会调用auto.sh的default的部分,最终阻塞,auth.sh的default部分,可能会运行一系列的命令,比如清空缓存,踢人下线,重置密码
|
# TODO:增加自动批量运行并阻塞的脚本,比如:group default ,会调用auto.sh的default的部分,最终阻塞,auth.sh的default部分,可能会运行一系列的命令,比如清空缓存,踢人下线,重置密码
|
||||||
|
|
||||||
if [ "$1" = "server" ] || [ "$1" = "" ]; then
|
if [ "$1" = "server" ] || [ "$1" = "" ]; then
|
||||||
|
# 运行定时任务
|
||||||
|
nohup php /var/www/html/think timer --local --quit &
|
||||||
# 运行nginx
|
# 运行nginx
|
||||||
service nginx start
|
service nginx start
|
||||||
# 运行php-fpm
|
# 运行php-fpm
|
||||||
|
|||||||
Reference in New Issue
Block a user