Skip to content

Instantly share code, notes, and snippets.

@gaulatti
Created October 13, 2014 16:30
Show Gist options
  • Save gaulatti/7e7e6f42453ec813af29 to your computer and use it in GitHub Desktop.
Save gaulatti/7e7e6f42453ec813af29 to your computer and use it in GitHub Desktop.
Deploying Symfony2
<?php
shell_exec('rm -rf ../app/cache/*');
shell_exec('chmod -R 777 ../app/cache/*');
shell_exec('rm -rf ../app/logs/*');
shell_exec('chmod -R 777 ../app/logs/*');
#!/bin/bash
git pull
curl http://url-to.site/clear2.php
php app/console assets:install
chmod -R 777 app/cache/ app/logs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment