forked from symfony/symfony-standard
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rebuild.sh
executable file
·25 lines (19 loc) · 884 Bytes
/
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
#!/bin/sh
set -xe
# Symlink assets
php frontend/console assets:install web --symlink
php backend/console assets:install web --symlink
# Rebuild propel default
php frontend/console propel:database:drop --force --connection=default
php frontend/console propel:database:create --connection=default
# Rebuild propel models
php frontend/console propel:build --verbose
php backend/console propel:build --verbose
# Insert propel sql
php frontend/console propel:sql:insert --force --connection=default
php backend/console propel:sql:insert --force --connection=default
# php frontend/console propel:fixtures:load --dir=src/You/YourBundle/Resources/Fixtures/ --connection=default
# Create the demo user fos
#php backend/console fos:user:create admin [email protected] admin
#php backend/console fos:user:promote admin ROLE_ADMIN
#php backend/console fos:user:create user [email protected] user