Git: How to manage a website with Git? How to use Git for a website -deployment?

对着背影说爱祢 提交于 2019-12-04 18:32:33

WRONG!

Do not develop inside your deployment -dir (commonly www in Apache). Develop elsewhere and use side-effects and proper version-control good-rules outlined in SethRobertson's guide here, particularly the rule about deployment branch for version 1.0 and tagging so you maintain a timeline how things develop over time. He states a do-not for the activity to mess development and deployment below, probably not good thing for your users also (they probably not wanting to see your editing of the website while browsing).

SethRobertson's guide states a DO-NOT for messing up deployment and development

use git as a web deployment tool

Yes it can be done in a sufficiently simple/non-critical environment with something like Abhijit Menon-Sen's document on using git to manage a web site to help, though there are other examples. However, this does not give you atomic updates, synchronized db updates, or other accouterments of an industrial deployment system.

So Using Git to manage a web site -tutorial here, example here and here -- but notice his warning "however, this does not give you atomic updates, synchronized db--".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!