|
|
@@ -10,6 +10,8 @@ function clearCacheAndLogs() {
|
|
10
|
10
|
[ "$?" != "0" ] && exit 1
|
|
11
|
11
|
sudo /bin/chmod -R 777 var/log
|
|
12
|
12
|
[ "$?" != "0" ] && exit 1
|
|
|
13
|
+
|
|
|
14
|
+ php bin/console cache:warmup
|
|
13
|
15
|
}
|
|
14
|
16
|
|
|
15
|
17
|
function init() {
|
|
|
@@ -25,7 +27,7 @@ function init() {
|
|
25
|
27
|
clearCacheAndLogs
|
|
26
|
28
|
|
|
27
|
29
|
export APP_ENV=$env
|
|
28
|
|
- composer install --no-dev --optimize-autoloader
|
|
|
30
|
+ composer install --no-dev --classmap-authoritative
|
|
29
|
31
|
[ "$?" != "0" ] && exit 1
|
|
30
|
32
|
|
|
31
|
33
|
if [ "$env" == "news" ]; then
|