We have a web-app, that we're deploying to a remote Ubuntu server.
The app is stored on BitBucket, and we also have Fabric scripts we're using to automatically deploy the app.
On the server, we have the files for the app in /var/www/name_of_site, this folder being a Mercurial repository. The files are owned by the user www-data, group www-data, and are group-writable.
When I attempt to login to the server and do a "hg add" inside the repository, I get a:
adding fabfiles/fabfile.py
abort: could not lock working directory of /var/www/site_name: Permission denied
I tried adding myself to www-data, and it still gives that error message. I'm able to create folders/files inside /var/www/site_name fine.
Have I set things up incorrectly here? Should the permissions be different?
Cheers, Victor
Check if you can add/remove files inside the .hg directory – tonfa Oct 27 at 10:27
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With