I am synchronizing the files on my local machine with the server as follows:
rsync -avz -e 'ssh' --exclude = temporary ~ / Projects / test / * [email protected]: / var / www /
But for the application to work, I have to go to the server and inside the / var / www folder I have to modify the permissions:
chmod -R 775 *
After applying the permissions the application works.
- Why do I have to apply the permissions?
- Why do I have to apply the permissions on the server every time I run the rsync command?