简体   繁体   中英

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

如果正确遵循配置和设置 ,则在运行cache:clear命令后无需设置cachelogs目录的权限

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM