#!/bin/bash
which php
export SYMFONY_ENV sb
export APP_ENV sb
export APPLICATION_ENV sb
#php app/console doctrine:schema:update --force --em=Backend
#php app/console doctrine:schema:update --force --em=ServiceProvider -e=sb
php app/console doctrine:schema:update --force --em=Webservice
#php app/console doctrine:schema:update --force --em=ReadWrite -e=sb
#php app/console doctrine:schema:update --force -e=sb
php app/console cache:clear
php app/console assets:install
php app/console assetic:dump
#find app -type d -exec chmod 0777 {} \;
#find app -type f -exec chmod 0666 {} \;
#find src -type d -exec chmod 0777 {} \;
#find src -type f -exec chmod 0666 {} \;