export SYMFONY_ENV=sb
export APPLICATION_ENV=sb
export SYMFONY_DEBUG=1

php composer.phar install

# cache clear
php app/console cache:clear -e=sb

# install assets
php app/console assets:install -e=sb

# dump assetic
php app/console assetic:dump -e=sb

# update db with current mapping
php app/console doctrine:schema:update --force --em=Backend -e=sb
php app/console doctrine:schema:update --force --em=ServiceProvider -e=sb
php app/console doctrine:schema:update --force --em=Webservice -e=sb

# local mac stuff
chmod -R 777 src/
chmod -R 777 app/
chmod -R 777 bin/
chmod -R 777 var/