简体   繁体   English

版本控制网站

[英]Versioning websites

Is it useful to apply a versioning scheme like SemVer to a website? SemVer这样的版本控制方案应用于网站是否有用? Or is it sufficient to somehow mark the deployed commits/revisions? 还是足以以某种方式标记已部署的提交/修订? For instance, create a Git release tag with a timestamp: v2017-01-07T16:59:37+00:00 (especially in a continuous deployment environment, this approach seems more suitable to me). 例如,创建一个带有时间戳的Git发布标签: v2017-01-07T16:59:37+00:00 (尤其是在连续部署环境中,这种方法对我来说似乎更合适)。

Depends, what you are trying to achieve? 取决于您要实现的目标?

If you are interested in cache control, indeed a git tag or a part of the git commit sha could be used. 如果您对缓存控制感兴趣,那么确实可以使用git标签或git commit sha的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM