Просмотр исходного кода

Add cache:warmup and --classmap-authoritative

tags/4.0.15.1
Steevan BARBOYON 8 лет назад
Родитель
Сommit
b713708221
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3
    1
      init_benchmark.sh

+ 3
- 1
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
13
 }
15
 }
14
 
16
 
15
 function init() {
17
 function init() {
25
     clearCacheAndLogs
27
     clearCacheAndLogs
26
 
28
 
27
     export APP_ENV=$env
29
     export APP_ENV=$env
28
-    composer install --no-dev --optimize-autoloader
30
+    composer install --no-dev --classmap-authoritative
29
     [ "$?" != "0" ] && exit 1
31
     [ "$?" != "0" ] && exit 1
30
 
32
 
31
     if [ "$env" == "news" ]; then
33
     if [ "$env" == "news" ]; then

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