0

I have linux as production server and I develop my application on windows. The thing is I want my folders to be 755 permissions on production and 644 for files. I use

find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \; 

these commands. It works well. Now let's imagine, I uploaded updated version of my app to github and I pulled it on server.

What happens is after git pull, permissions or owners for folders and files get changed. So app stops working and i have to run those 2 commands to make it work again. What do I do wrong?

Thank you.

mooga
  • 2,813
  • 4
  • 22
  • 36
Nika Kurashvili
  • 5,176
  • 8
  • 34
  • 92

0 Answers0