Mike
Mike

Reputation: 2735

Symfony2: An easy way to clean cache and set permissions?

When I update my Symfony2 project I always have to do this:

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

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)...

Upvotes: 0

Views: 2425

Answers (1)

seferov
seferov

Reputation: 4161

If you follow the Configuration and Setup properly, there is no need to set permissions of cache and logs directories after running cache:clear command

Upvotes: 4

Related Questions