I have a Symfony2 project that needs full read write permissions to three directories: app/cache, app/logs, and few other directories which are used for uploading. The problem is everytime I push an update via git these libraries lose their permissions and I have to runa chmod 777 on them.I'd like to not have to do this everytime. I could just write this in the hooks/post-receive but I'd like to know if there's a better way to do it and if giving 777 permissions is ok. It is the only way the project works.Please advise.
Amazon EC2: Giving Permanent Permission To A Sepecific Directory In Amazon Linux AMI
linux;filesystems;permissions;git