如何在 Magento 中管理扩展版本控制
我一直在试图找出开始构建 Magento 扩展以供发布的最佳方法。我希望能够为每个扩展拥有单独的 svn 存储库。试图找出开发这些内容的最佳方法似乎有些困难,以便在版本控制方面使事情变得简单。显然,您希望在 Magento 应用程序内部处理扩展,但您不希望担心忽略除扩展的文件之外的所有文件。
我考虑过使用 svn:externals 但我不认为这是答案,因为您需要将某些文件混合到其他目录中,并且它并不是真正独立的。从我读到的外部信息来看,这似乎不是一个好的选择。
所以我只是想看看其他人如何设置他们的扩展开发环境,也许忽略所有其他文件就是正确的方法。我们还考虑过符号链接,但这意味着编写一个脚本来为所有开发人员执行此操作,我不确定这是否那么好,因为人们可能会以不同的方式设置他们的项目。
I have been trying to figure out the best way to start working on building Magento extensions for release. I would like to be able to have individual svn repos for each extension. It seems like there is some difficulty trying to figure out the best way to develop these in a way that makes things easy in terms of version control. Obviously you want to work on the extension, inside of a Magento application, but you wouldn't want to have worry about ignoring all the files except the ones that are for the extension.
I thought about using svn:externals but I don't think that is the answer since you need to have certain files mixed into other directories and its not really standalone. From what I read with externals it doesn't seem like this is a good choice.
So I am just looking to see what others do to setup their extension development environment, maybe just ignoring all other files is the way to go. We also thought about sym linking but that would mean writing a script that would do this for all developers and I am not sure that this would be that great either since people may setup their projects different.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您正在考虑的符号链接脚本已经存在。它称为 模块管理器 (modman),非常适合在一个 Magento 安装中管理多个模块。 Modman 允许您在同一文件夹中签出和管理多个 SVN 存储库。
但是,请注意,Magento 1.4.2.0 中的安全更改使得无法将模板文件符号链接到应用程序/设计中,因此需要一种解决方法。更多信息请参阅此错误报告。
The symlink script you are thinking of already exists. It's called Module Manager (modman) and it's great for managing multiple modules in one Magento install. Modman allows you to checkout and manage multiple SVN repos in the same folder.
However, please note that a security change in Magento 1.4.2.0 makes it impossible to symlink template files into app/design, so a workaround is needed. More info in this bug report.
Ashley Schroder 在 magento Imagine 大会上介绍过这种技术。您可以访问他的网站:设计您的 magento 商店
Ashley Schroder had introduced this kind of techniques in magento imagine conference. You can visit his website : Engineering your magento store
我使用 git 来管理扩展代码库、部署和符号链接+覆盖每个扩展中提到的错误
I use git for managing extension codebase, deployment and symlinking + override to the bug mentioned in each extension