Magento工作流程到Modman的开发扩展 [英] Magento-workflow to development extension with Modman

查看:66
本文介绍了Magento工作流程到Modman的开发扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的个人计算机中安装modman,以在Magento中开发自定义扩展,并对此进行相应的维护. 我想知道Magento模块和Modman之间的正确工作流程.在更新我的扩展程序的过程中,我有一个疑问. 为了使理解更加完整,我将以我的观点描述工作流程:

I'm install modman in my personal computer to development a custom extension in Magento with the correspondly maintenance of this. I want to know the correct workflow between Magento Module and Modman. I have one doubt in the process to update my extension. To the complet understanding, I'll describe the workflow under my point of view:

  1. 为我的扩展程序创建我的git存储库

  1. Create My git repository for my extension

在服务器端:

git init裸

克隆此存储库并创建骨架以使用modman脚本

Clone this repository and create the skeleton to modman script

nano modman:

nano modman:

代码应用程序/代码/范围/公司/模块/ compamy_module.xml app/etc/modules/company_module.xml

code app/code/scope/company/Module/ compamy_module.xml app/etc/modules/company_module.xml

更新存储库

git add/commit/push

git add/commit/push

在我的免费Magento安装中,创建新分支

In my free install of Magento create new branch

git checkout -b moduleName

git checkout -b moduleName

在我的安装中克隆扩展名

Clone the extension in my instalation

modman克隆git@x.x.x.x:/route/to/module/repository

modman clone git@x.x.x.x:/route/to/module/repository

好的,在这一点上,我可以很好地使用我的Magento模块扩展,但是我还有一个疑问.谁可以通过magento免费安装来更新模块存储库? 我尝试 modman update moduleName

Ok, in this point I have a good enviorment to work with my Magento module extension, but I have the next doubt. Who I can update the module repository working from the magento free installation?? I try modman update moduleName

但我不更新扩展的存储库,正确的工作流程如何?" 我应该修改扩展库吗? 我认为可以从Magento全新安装中进行工作,并从中更新Magento模块存储库....

but I don't update the repository of the extension, How Is the correct Workflow? Should I modify the extension repository? I think that can work from the Magento clean installation and update the Magento module repository from that....

推荐答案

采用此方法:

  1. 进行扩展存储库(无论是否重要都无所谓,建议将其作为主存储库)
  2. 像您一样创建modman脚本(您的扩展名看起来不正确)
  3. 更新存储库
  4. 在magento安装中,您可以签出分支机构或使用master分支机构(单独的工作流程)
  5. modman克隆.....
  6. 回到3.添加您的更改并推送回购
  7. modman更新moduleName

这篇关于Magento工作流程到Modman的开发扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆