Magento的;私人/公共文件系统层 [英] Magento; private/public filesystem layer

查看:156
本文介绍了Magento的;私人/公共文件系统层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在私人和公共网站目录中拆分magento软件包。例如。私人目录可以在多个项目上重复使用,它只是应用程序。


$ b

  • 私人/


    • 应用程式,下载程式,包含,lib,pkginfo,var
  • 公共/


    • 404,js,媒体,报表,皮肤+当前根文件(index.php等)


      我在SVN中设置它,只有一个magento副本可以处理不同阶段的各种项目。 / b>

      我列出了我的第一个目标;


      • 包含所有可重复使用的私人目录包部分
      • 仅包含本地核心代码,包扩展,外观和API实现的公共目录


        • 显着缩小工作副本


        • 对于db的即时消息计划使用固定基本url的一段本地代码
        • Zend Framework和其他潜在的库


          • 这些守ld指向全局现有的库目录(Zend已经在这里; - ))
            保持magento的供应商源up2date


            • 软件包被标记为未触及,以确保正确更新




          我不知道如何设置从供应商源到分离的目录SVN中的流。

          解决方案

          您需要对设置的方式进行一些修改:


          • 包括应该公开 - 这是用于存储应用程序文件的编译版本

          • var应该是公开的 - 所有的var文件都将特定于每个商店

          • 报告应该是私有



          这个设置也不容易安装扩展,它可以把文件放在Magento树的任何地方,包括app和库。特别是应用程序目录几乎总是需要定制在etc /和code /中。



          我认为这将是很多工作来建立和维护,但它当然是有趣的练习,如果用作标准部署脚本的一部分,可以帮助更快的部署。


          I want to split up the magento package in a private and public web directory. E.g. the private directory is reuseable on multiple projects, its just the app.

          • private/
            • app, downloader, includes, lib, pkginfo, var
          • public/
            • 404, js, media, report, skin + current root files (index.php etc.)

          Im setting this up in SVN where just one copy of magento can handle various projects on different stages.

          I've listed my first goals;

          • Private directory containing all the reuseable package parts
          • Public directory containing just local core code, package extensions, skins and API implementations
            • Downsizes working copies significantly
          • For db's im planning to use a piece of local code fixing the base url
          • Separate Zend Framework and other potential libraries
            • These should point to a global existing library directory (Zend is already here ;-))
          • Keeping magento's vendor source up2date
            • Packages are tagged untouched to ensure a proper update

          Im not sure how to set up the flow in SVN from vendor source to separated directories.

          解决方案

          There's a few modifications you'll need to make to the way you've set things up:

          • includes should be in public - it is for storing compiled versions of the app files
          • var should be in public - all var files are going to be specific to each store
          • report should be in private

          This setup also doesn't easily allow for installing extensions, which can place files anywhere in the Magento tree, including app and lib. The app directory in particular will almost always require customisations in etc/ and code/.

          I think this would be a lot of work to set up and maintain but it's certainly an interesting exercise and may help with faster deployments if used as part of a standard deployment script.

          这篇关于Magento的;私人/公共文件系统层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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