We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa74642 commit fcd53f7Copy full SHA for fcd53f7
init_benchmark.sh
@@ -0,0 +1,30 @@
1
+#!/usr/bin/env bash
2
+
3
+function clearCacheAndLogs() {
4
+ sudo /bin/rm -rf app/cache/*
5
+ [ "$?" != "0" ] && exit 1
6
+ sudo /bin/chmod -R 777 app/cache
7
8
9
+ sudo /bin/rm -rf app/logs/*
10
11
+ sudo /bin/chmod -R 777 app/logs
12
13
+}
14
15
+function init() {
16
+ clearCacheAndLogs
17
18
+ export SYMFONY_ENV=prod
19
+ composer install --no-dev --optimize-autoloader
20
21
22
+ php app/console assets:install --symlink --env=prod
23
24
+ php app/console assetic:dump --env=prod
25
26
27
28
29
+ return 0
30
0 commit comments