Skip to content

Commit 4673cfa

Browse files
committed
Add init_benchmark
1 parent 2596dc7 commit 4673cfa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

init_benchmark.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
function clearCacheAndLogs() {
4+
sudo rm -rf app/cache/*
5+
sudo chmod -R 777 app/cache
6+
7+
sudo rm -rf app/logs/*
8+
sudo chmod -R 777 app/logs
9+
}
10+
11+
clearCacheAndLogs
12+
13+
export SYMFONY_ENV=prod
14+
composer install --no-dev --optimize-autoloader
15+
16+
php app/console assets:install --symlink --env=prod
17+
php app/console assetic:dump --env=prod
18+
19+
clearCacheAndLogs

0 commit comments

Comments
 (0)