我在一个存储库中有多个网站项目,每个项目都有一个WordPress副本。更新WordPress意味着更新所有项目文件夹并保留冗余副本。这对于我的同步整个文件夹的rsync脚本很有用。
我可以通过多种方法来改进它,并希望获得一些反馈。我在Windows上,最近迁移到Subversion。
最好的方法是什么,还有其他替代解决方案吗?
解决方案一个选项就是将WordPress比特分离到一个单独的存储库中(因为它实际上不是项目的一部分,这只是您用来构建它们的内容),然后使用svn:externals将其提取到正确位置的项目中。 / p>
SVN中的外部定义图书
I have multiple website projects in a single repository each of which have a copy of WordPress. Updating WordPress means updating all project folders and keeping redundant copies. This is useful for my rsync scripts which sync the entire folder. It also gives me fully working local copies of the site.
There are a number of ways I can see of improving this and would like some feedback. I'm on Windows and recently migrated to Subversion.
What's the best approach and are there any alternate solutions?
解决方案One option would be to separate the WordPress bits out into a separate repository (since it's not really part of your projects, it's just something you use to build them), and then use svn:externals to fetch that into your projects in the correct locations.
Externals Definitions in the SVN book
更多推荐
SVN:跨项目共享通用代码的最佳方法
发布评论