项目启动脚本开发

Posted by epimetheusQ on 2021-09-10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash
CODE_DIR=/home/wwwroot/ai_gmall_server

# 更新代码
cd $CODE_DIR
git checkout .
git pull origin

composer install --optimize-autoloader
\cp envs/qa/.env .env

php artisan config:clear
php artisan view:clear

/etc/init.d/php-fpm reload
php artisan horizon:terminate