I am running a Kirby site on a droplet following the steps on this tutorial: How To Set Up Automatic Deployment with Git with a VPS
In order to use the panel and editing the content folder on the server I changed the permissions to:
sudo chown -R www-data:www-data directory
But know I am unable to push to the remote repo due the fact the permissions has changed.
I have to manually change that stuff before and after I push to the remote.
How are other users handle that issue?
This is by far the common way to deploy sites in production and I am interested how to solve it!