如何在网络服务器上配置权限以获得成功的 bzr 存储库
我正在尝试使用 bzr 在部署服务器和本地开发计算机之间获得更好的工作流程。
Web 服务器以 www-user 和 bzr-login 身份使用本地帐户 wdev 运行。 在设置服务器组时,www-user: www-user,wdev,反之亦然。
为简单起见,紧急错误修复通过 ssh 在服务器的 trunk 中修复。
推荐的设置是什么?中继在/home/wdev?
部署应该是主干还是分支?
目前,我必须 su root 才能提交,这让我很困惑..我可以“su www-data”并具有读/写访问权限。尽管如此,网络服务器仍然没有 php 的写入权限。 当前的解决方案是 chown:ing everything to www-data,这是一个令人讨厌的解决方案,因为任何合并 会模糊新文件的 wdev-所有权。
感谢有关首选设置的任何基本操作方法
(这或多或少是来自 https 的 x-post ://serverfault.com/questions/299436/directory-rights-with-webserver-and-bzr但没有得到太多回应)。
问候,
I'm trying to get a better workflow with bzr between deploy server and local development machine.
Web server running as www-user and bzr-login with local account, wdev.
at server groups are setup, www-user: www-user,wdev and vice versa.
For simplicity, urgent bugfixes are fixed in trunk at server through ssh.
What would be the recommended setup? Trunk in /home/wdev?
Should the deployment be a trunk or branch?
Currently, I have to su root to commit, which puzzels me.. I can "su www-data" and have read/write access. Still, the webserver still doesn't have write permissions with php.
Current solution is chown:ing everything to www-data, a dislikable solutions since any merge
would blur new files with wdev-ownership.
Thankful for any basic howto regarding prefered setup
(this is more or less a x-post from https://serverfault.com/questions/299436/directory-rights-with-webserver-and-bzr but didn't get much response there).
regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为主干指的是主分支?对于分布式版本控制系统,主干和分支之间没有区别,这只是一种约定,因此只需组织它们,以便它们对您来说方便即可。
也许你可以使用粘性位:
http://michael.lustfield.net/content/creating-your-own -bazaar-服务器
我从来没有让它工作得很好(也许我做错了),所以我使用 cronjob 每小时修复权限。
如果您使用智能服务器,所有用户都会通过1 os 用户,因此权限在另一个级别处理。
By trunk I assume you mean the master-branch ? With distributed revision control systems there is no distinction between a trunk and a branch it is just a convention, so just organise them so they are convenient for you.
Maybe you can use sticky bits:
http://michael.lustfield.net/content/creating-your-own-bazaar-server
I have not had it working nicely ever (maybe I did it wrong), so I use a cronjob to fixup permissions hourly.
If you use a smart server all the users commit through 1 os user, so the permissions are handled at another level.