File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,5 @@ bin="${base_dirname}/bin/hyperf.php"
1313# 执行迁移 (使用分布式锁保护,防止并发执行)
1414php " ${bin} " shell:locker migrate
1515
16- # 检查是否已经初始化过
17- if [ ! -f " ${base_dirname} /.initialized" ]; then
18- echo " Initializing magic-service for the first time..."
19-
20- # 执行 composer update
21- cd ${base_dirname}
22-
23- # 执行数据库种子
24- php " ${bin} " db:seed
25-
26- # 创建标记文件,表示已经初始化过
27- touch ${base_dirname} /.initialized
28- echo " Initialization completed!"
29- else
30- echo " magic-service has already been initialized, skipping..."
31- fi
32-
33- # 执行seeders
34- # php "${bin}" db:seed
35-
3616# 开启服务
3717USE_ZEND_ALLOC=0 php -dopcache.enable_cli=1 -dopcache.jit_buffer_size=128M -dopcache.jit=1255 -dopcache.validate_timestamps=0 " ${bin} " start
You can’t perform that action at this time.
0 commit comments