Skip to content

Instantly share code, notes, and snippets.

@krispypen
Created August 22, 2012 07:59
Show Gist options
  • Save krispypen/3423648 to your computer and use it in GitHub Desktop.
Save krispypen/3423648 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo chmod -R 777 app/cache/
sudo chmod -R 777 app/logs/
rm -R app/cache/*
rm -R app/logs/*
php app/console --force doctrine:schema:drop
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load
php app/console assets:install web
php app/console assetic:dump
php app/console cache:clear --env=dev
php app/console cache:clear --env=prod
php app/console cache:warmup
sudo chmod -R 777 app/cache/
sudo chmod -R 777 app/logs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment