forked from eLtMosen/FreakXoHBingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpropel_rebuild.sh
executable file
·35 lines (30 loc) · 1.16 KB
/
propel_rebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# include bash base
. _base.sh
echo "${underline}${green}Clearing all caches... ${reset}"
# Clear all caches
rm -rf app/cache/
#app/console cache:clear
#app/console cache:clear --env=dev
echo "${underline}${green}DONE${reset}"
echo "${underline}${green}Deleting all Propel generated data... ${reset}"
# Delete all Propel generated data
# @todo find and remove all third party bundle propel generated files
rm -rf **/Propel/Base/**
rm -rf **/Propel/Map/**
#rm -rf vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Propel/map
#rm -rf vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Propel/om
echo "${underline}${green}DONE${reset}"
echo "${underline}${green}Creating base db with propel... ${reset}"
# Create base db with propel
app/console propel:build
#app/console propel:database:drop --force
#app/console propel:database:create
app/console propel:sql:insert --force
echo "${underline}${green}DONE${reset}"
echo "${underline}${green}Loading fixtures... ${reset}"
# Load fixtures
app/console bingo:fixtures:load --env=dev
# this will execute:
#php app/console propel:fixtures:load --yml --dir=app/fixtures/loader --env=dev
echo "${underline}${green}DONE${reset}"