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
命令后无需设置cache
和logs
目录的权限
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.