Skip to content

Instantly share code, notes, and snippets.

@ezy
Last active September 22, 2016 23:03
Show Gist options
  • Save ezy/94858987d1ee6dfed0fd6eaffe10b9bd to your computer and use it in GitHub Desktop.
Save ezy/94858987d1ee6dfed0fd6eaffe10b9bd to your computer and use it in GitHub Desktop.
PHP Symfony commands
sudo rm -rf web/bundles/*
sudo rm -rf web/css/*
sudo rm -rf web/js/*
php app/console cache:clear
php app/console assets:install
php app/console assetic:dump
sudo rm -rf web/bundles/* ; sudo rm -rf web/css/* ; sudo rm -rf web/js/* ; sudo rm -rf var/logs/* ; sudo rm -rf /vagrant/var/cache/ ; php app/console assets:install ; php app/console assetic:dump
php app/console doctrine:migrations:migrate
Before switching branches, migrate down `php app/console doctrine:migrations:migrate 20160530162325`, then switch, then `php app/console doctrine:migrations:migrate`
sudo rm -rf /vagrant/var/cache/
SELECT confirmation_token FROM user ORDER BY id DESC LIMIT 1
sudo service elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment