当我更新我的 Symfony2 项目时,我总是必须这样做:
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
有更简单的方法吗?或者我可以永久设置ubuntu的权限吗?你怎么做呢? (我使用 Komodo 作为编辑器,我可以在其中放置一个宏按钮来远程清理我的缓存或使用 Eclipse,但我对 Eclipse 有疑问)...
最佳答案
如果您关注 Configuration and Setup正确的,不需要设置cache
的权限和 logs
运行后的目录cache:clear
命令
关于ubuntu - Symfony2 : An easy way to clean cache and set permissions?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9980430/