瀏覽代碼

Fix cache warmup

tags/4.1.9.1
Steevan BARBOYON 7 年之前
父節點
當前提交
c438cc1626
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      init_benchmark.sh

+ 2
- 2
init_benchmark.sh 查看文件

10
     [ "$?" != "0" ] && exit 1
10
     [ "$?" != "0" ] && exit 1
11
     sudo /bin/chmod -R 777 var/log
11
     sudo /bin/chmod -R 777 var/log
12
     [ "$?" != "0" ] && exit 1
12
     [ "$?" != "0" ] && exit 1
13
-
14
-    php bin/console cache:warmup
15
 }
13
 }
16
 
14
 
17
 function init() {
15
 function init() {
18
     export APP_ENV='prod'
16
     export APP_ENV='prod'
19
 
17
 
18
+    sudo /bin/rm -rf vendor/
20
     clearCacheAndLogs
19
     clearCacheAndLogs
21
 
20
 
22
     composer install --no-dev --classmap-authoritative
21
     composer install --no-dev --classmap-authoritative
23
     [ "$?" != "0" ] && exit 1
22
     [ "$?" != "0" ] && exit 1
24
 
23
 
25
     clearCacheAndLogs
24
     clearCacheAndLogs
25
+    php bin/console cache:warmup
26
 
26
 
27
     return 0
27
     return 0
28
 }
28
 }

Loading…
取消
儲存