Magento Development Code Management

2011-04-20  来源:本站原创  分类:PHP  人气:98 

General idea is: Install Magento to Apache's virtual directory, and then modify or add files Magento installation directory.

The result is clear, however, modify the code and the original code mixed together, difficult to manage. In addition, if a team is expanding in the development of Magento, then how should use the version control tools (such as Subvesion) to manage your code?

So my approach is:

I. Separation of Magento extensions (including changes) of the code - into a separate directory.
2. If the original documents relating to the modification of Magento, you have to make that list of files in order to upgrade the system accordingly updated.
3. To use Subversion to manage source code: the daily changes of any tuning is always under a separate project directory, for submission to Subversion, and then Update to the Magento installation directory.
For the first time to update their code to the Magento installation directory, need to perform Subversion, Checkout command. Assuming the directory layout is as follows:
Subversion Repository
svn / magento
| __ App
| __ Code
| __ Design
.....

Magento installation directory
d: \ programs \ Apache2 \ htdocs \ mageto

So
svn co http://localhost/svn/magento d: \ programs \ Apache2 \ htdocs \ mageto
Will the code on the checkout svn repository to the d: \ programs \ Apache2 \ htdocs \ mageto directory. This requires d: \ programs \ Apache2 \ htdocs \ mageto directory must be empty, but the directory is Magento installation directory (definitely not empty), so checkout required parameters - force.
svn co - force http://localhost/svn/magento d: \ programs \ Apache2 \ htdocs \ mageto

Can be normal after the update.

* If the first change Magento installation directory under the document, recommended practices are:

In the Magento installation directory to modify the document to be submitted to Subversion, and then in the project directory update. Then as described earlier: has been amended in a separate project directory.

* If checkout prior to the installation directory Mageneto subversion and have the same name as the file Magento installation directory, result is the Magento files under the installation directory will not be updated, but the tag based on the new machine than SVN. One approach is to manually overwrite the old file, another approach is to separate all project work directory files (svn on time should be maintained and consistent, but also. Svn directories) simply copied to the Magento installation directory. Then you can use svn update to work properly

Similarly, for Zen-Cart, Joomla and other developers should encounter a similar problem, how do they solve? May wish to share experiences.

相关文章
  • Magento Development Code Management 2011-04-20

    General idea is: Install Magento to Apache's virtual directory, and then modify or add files Magento installation directory. The result is clear, however, modify the code and the original code mixed together, difficult to manage. In addition, if a te

  • How to improve the quality of the code (Management chapter): Code review 2010-02-24

    How to improve the quality of the code (Management chapter): Code review Perhaps you are a project manager, perhaps you are a core member of the project or development team leader. I published "How to improve code quality" of the system after th

  • Project Development Process Management 2010-07-01

    Project Development Process Management (A) Svn as program code, and various versions of a document management tool 1) backbone as the main line of development 2) the branch as a phased upgrade 3) system on-line asset management system for on-line cyc

  • Simple software development project management method 2010-08-14

    Transfer from rayzhl25 Introduction: At the forum, many people often see the project management experience, and are lengthy, eloquent; always seen my head spin, the total feeling stays in the person's role, always emphasized the human factors managem

  • Topo Introduction to statistical analysis code management 2010-12-20

    Topo team of enterprise software system to provide a lot of very useful code management capabilities, by means of these features, the software team can improve their work efficiency, Topo code management system include: the depth of view code, code s

  • Introduction to statistical analysis code management 2010-12-30

    Topo team of enterprise software system to provide a lot of very useful code management capabilities, by means of these features, the software team can improve their work efficiency, Topo code management system include: the depth of view code, code s

  • Easier software development risk management - at 2007-02 <Programmers> 2007-03-05

    Some time ago I wrote a blog, called "game, great truths." On a called "ColorLinez" little game. Although the surface is a summary of the game strategy, and my mind has been pondering, or development and management matters. This time &

  • Open-source code management system 2008-09-18

    Software Chinese Name: Code Management English name: CodeMgr Current version: 1.2.4 Development of language: Delphi 7.0 Function: the process of writing code is a cumulative process, you have not thought has its own code repository to better manage t

  • Project management I see (a) - Code Management 2008-10-13

    1) The naming and writing the code specifications, get rid of some bad habits We are more aware now of the development framework, more and more need to write their own code less and less, non-standard situation is less and less. But there will still

  • Topo About statistical analysis code management 2010-12-20

    Topo system to provide enterprise software teams a lot of very useful code management capabilities, by means of these functions, the software team can improve their work efficiency, Topo code management system include: the depth of the code view, cod

  • About statistical analysis code management 2010-12-30

    Topo system to provide enterprise software teams a lot of very useful code management capabilities, by means of these functions, the software team can improve their work efficiency, Topo code management system include: the depth of the code view, cod

  • Code management software project management (acquaintance maven) 2011-04-01

    In project management, code management reflects the project's productivity. Version control is one thing. But how to manage the project life cycle and project dependencies between the various projects is quite troublesome, maven as a good project man

  • Software development project management 2010-03-29

    Prior to the Japanese in Nanjing, a company work, because at that time or rookie level, on the development process are not very clear, but because of their high level of project development and management, I did the first project developed by the qua

  • Practical project development and management summary 2010-08-21

    Practical project development and management summary 2010-8-21 Several members of the group recently carried out with project development, in order to avoid in 2009 led the project in Guangxi Unicom mistakes of time to do some summary records to cons

  • New product development project management system for documents related to Master List of Contents 2010-09-19

    New product development project management system for documents related to Master List of Contents ├ ─ 05 Project Management │ ├ ─ 01 │ │ ├ ─ project commercialization of new products, the book project template. Doc 134.00KB │ │ ├ ─ New book project

  • New product development project management system for documents related to the total table directory 2010-09-19

    New product development project management system for documents related to the total table directory Project Management ├ ─ 05 │ ├ ─ 01 │ │ ├ ─ project commercialization of new products, the book project template. Doc 134.00KB │ │ ├ ─ New book projec

  • SVN Server on a Mac to create ruby ​​code management 2007-09-08

    Prepare themselves to do with ruby ​​on rails with a simple open source CMS system, originally part of the code has been written, but found the code management is chaotic, and there is no demand for a unified iterative control management, writing cod

  • Software development project management process 2010-03-29

    Prior to the Japanese in Nanjing, a company work, because of the rookie class, the problem of the development process is not clear, but because of their high level of project development and management, I did the first quality of a project developed

  • Practical summary of the project development and management 2010-08-21

    Practical summary of the project development and management 2010-8-21 Recently with several members of the group project development, in order to avoid in 2009 led the project in Guangxi Unicom mistakes, time to do some summary records, in order to c

  • New product development project management involves a system of documentation directory summary table 2010-09-19

    New product development project management involves a system of documentation directory summary table ├ ─ 05 Project Management │ ├ ─ 01 │ │ ├ ─ project commercialization of new products, the book project template. Doc 134.00KB │ │ ├ ─ New book proje