开发者

Mercurial - Could not lock working directory

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 /v开发者_Python百科ar/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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜