File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
function clearCacheAndLogs() {
4
4
sudo rm -rf app/cache/*
5
+ [ " $? " != " 0" ] && exit 1
5
6
sudo chmod -R 777 app/cache
7
+ [ " $? " != " 0" ] && exit 1
6
8
7
9
sudo rm -rf app/logs/*
10
+ [ " $? " != " 0" ] && exit 1
8
11
sudo chmod -R 777 app/logs
12
+ [ " $? " != " 0" ] && exit 1
9
13
}
10
14
11
- clearCacheAndLogs
15
+ function init() {
16
+ clearCacheAndLogs
12
17
13
- export SYMFONY_ENV=prod
14
- composer install --no-dev --optimize-autoloader
18
+ export SYMFONY_ENV=prod
19
+ composer install --no-dev --optimize-autoloader
20
+ [ " $? " != " 0" ] && exit 1
15
21
16
- php app/console assets:install --symlink --env=prod
17
- php app/console assetic:dump --env=prod
22
+ php app/console assets:install --symlink --env=prod
23
+ [ " $? " != " 0" ] && exit 1
24
+ php app/console assetic:dump --env=prod
25
+ [ " $? " != " 0" ] && exit 1
18
26
19
- clearCacheAndLogs
27
+ clearCacheAndLogs
28
+
29
+ return 0
30
+ }
You can’t perform that action at this time.
0 commit comments