Steevan BARBOYON 7 лет назад
Родитель
Сommit
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
 }

Загрузка…
Отмена
Сохранить