|
|
@@ -10,19 +10,19 @@ 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
|
|
15
|
13
|
}
|
|
16
|
14
|
|
|
17
|
15
|
function init() {
|
|
18
|
16
|
export APP_ENV='prod'
|
|
19
|
17
|
|
|
|
18
|
+ sudo /bin/rm -rf vendor/
|
|
20
|
19
|
clearCacheAndLogs
|
|
21
|
20
|
|
|
22
|
21
|
composer install --no-dev --classmap-authoritative
|
|
23
|
22
|
[ "$?" != "0" ] && exit 1
|
|
24
|
23
|
|
|
25
|
24
|
clearCacheAndLogs
|
|
|
25
|
+ php bin/console cache:warmup
|
|
26
|
26
|
|
|
27
|
27
|
return 0
|
|
28
|
28
|
}
|