[英]Maintaining website with Git and more
I have a static website filled with documentation and reference material for my team and future users (we're up in coming, shown here with me trying to setup a useful and viable website system). 我有一个静态网站,里面满是文件和参考资料,供我的团队和未来的用户使用(我们来了,在此显示,试图建立有用且可行的网站系统)。
The site contains various static pages (note: by static I just mean HTML documents) in various directories that together are packages of documentation, or project homepages/documentation. 该站点在各个目录中包含各种静态页面(请注意:静态,我只是指HTML文档),这些目录共同构成了文档包或项目主页/文档。
I would like each project homepage or notable collection of pages/documentation to be a git repository. 我希望每个项目主页或页面/文档的显着集合都是git存储库。 The repositories should only be able to be pushed to by project maintainers and selective people, but should be able to be cloned by anyone (so users can quickly clone a documentation repository or something).
该存储库只能由项目维护人员和有选择的人员推入,但应该可以被任何人克隆(以便用户可以快速克隆文档存储库或其他内容)。 This eliminates FTP and similar annoying things.
这消除了FTP和类似的烦人的事情。
So with this goal I have a couple of issues: 因此,出于这个目标,我有两个问题:
You need three kind of repositories. 您需要三种存储库。
For the central repository I would recommend some management/authentication software like gitlab, gitolite, atlassian stash, gerrit, etc. 对于中央存储库,我建议使用一些管理/身份验证软件,例如gitlab,gitolite,atlassian储藏库,gerrit等。
For updating your repository at the web server you could use a git hook at the central repository. 要在Web服务器上更新存储库,可以在中央存储库使用git hook。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.