title: Symfony2: An easy way to clean cache and set permissions?
body: <p>When I update my Symfony2 project I always have to do this: </p>
  
  <pre><code>root@xxx:/var/www/project# php app/console cache:clear --env=prod 
  Clearing the cache for the prod environment with debug true
  root@xxx:/var/www/project# chmod -R 777 app/cache
  root@xxx:/var/www/project# chmod -R 777 app/logs
  </code></pre>
  
  <p>Is there an easier way to do it? Or can I permanently set the permissions on ubuntu? How do you do it? (I am using Komodo as editor, I could put a macro button in there that remotely cleans my cache or use Eclipse, but I have my issues with eclipse)...</p>