This commit is contained in:
kuaifan 2022-01-08 08:56:29 +08:00
parent bf15be8144
commit 8a2571f514

4
cmd
View File

@ -236,7 +236,7 @@ if [ $# -gt 0 ]; then
chmod -R 775 "${cur_path}/docker/log/supervisor" chmod -R 775 "${cur_path}/docker/log/supervisor"
chmod -R 775 "${cur_path}/docker/mysql/data" chmod -R 775 "${cur_path}/docker/mysql/data"
# 启动容器 # 启动容器
[ "$(arg_get port)" -gt 0 ] && env_set APP_PORT "$(arg_get port)" [[ "$(arg_get port)" -gt 0 ]] && env_set APP_PORT "$(arg_get port)"
docker-compose up -d docker-compose up -d
docker-compose restart php docker-compose restart php
# 安装composer依赖 # 安装composer依赖
@ -250,7 +250,7 @@ if [ $# -gt 0 ]; then
echo -e "${Error} ${RedBG}composer install 失败,请重试! ${Font}" echo -e "${Error} ${RedBG}composer install 失败,请重试! ${Font}"
exit 1 exit 1
fi fi
[ -z "$(env_get APP_KEY)" ] && run_exec php "php artisan key:generate" [[ -z "$(env_get APP_KEY)" ]] && run_exec php "php artisan key:generate"
run_exec php "php bin/run --mode=prod" run_exec php "php bin/run --mode=prod"
# 检查数据库 # 检查数据库
remaining=10 remaining=10