将两个项目与bazaar分开在同一目录下
我创建了另一个 php 框架,它是多个框架的共同基础 我开发的网络应用程序。该框架也作为启动板项目存在。
Web 应用程序使用该框架,并使用自定义 (php) 模块和扩展它 拥有自己的网页/设计文件(css、图像、html、js 等)
在开发这些应用程序期间,我还修改了框架。 在这种情况下,我想将更改(仅框架文件)推回框架中央目录, 然后从那里开始,致力于启动板。
作为一个单独的项目,我还希望有一个仅包含 为 web 应用程序定制的文件。然而,这些目录是相互嵌套的 多个级别,所以它不是微不足道的(至少对我来说不是)
查看目录布局:
[framework_central_dir] <---------> launchpad
www/
www/app/framework.php
www/app/framework/**
www/lib/**
|
|
|
|
|
|
\/
[webapp_dir]
www/app/local-module/** [->Webapp Repo]
www/app/framework.php [->Framew Repo]
www/app/framework/** [->Framew Repo]
www/lib/** [->Framew Repo]
www/css/** [->Webapp Repo]
www/js/** [->Webapp Repo]
www/* [->Webapp Repo]
我看到 bzr-externals 可能适合我,但我不确定我是否正确。 我想请教一下这是否可以实现。如果是,请告诉我这个想法。 如果这个问题是重复的,那么我很抱歉,也许我什至已经看到了它,但不确定它是否适合我,所以请指出它。
谢谢
I've created yet another php framework that is a common base to multiple
webapps I develop. This framework is also present as a launchpad project.
The webapps use the framework, and also extend it with custom (php) modules and
with their own web/design files (css, images, html, js, etc)
During the development of these apps, I also modify the framework.
In such cases I'd like to push changes (of framework files only) back to the framework-central directory,
and from there, commit to launchpad.
As a separate project I also would like to have a bzr tree that only contains the
files custom to the webapp. The directories are however nested in each-other on
multiple levels, so it's not trivial (at least not for me)
See the directory layout:
[framework_central_dir] <---------> launchpad
www/
www/app/framework.php
www/app/framework/**
www/lib/**
|
|
|
|
|
|
\/
[webapp_dir]
www/app/local-module/** [->Webapp Repo]
www/app/framework.php [->Framew Repo]
www/app/framework/** [->Framew Repo]
www/lib/** [->Framew Repo]
www/css/** [->Webapp Repo]
www/js/** [->Webapp Repo]
www/* [->Webapp Repo]
I saw that bzr-externals might be for me, but I'm not sure if I'm correct.
I'd like to ask for advice if this can be achived or not. If yes, please show me the idea.
If this question is a duplicated one, then I'm sorry about it, maybe I even saw it already but wasn't sure that it was for me, so please point me to it.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能在同一根目录中混合两个不同的项目。您应该将至少其中之一放入子目录中。这就是 bzr-externals 应该如何工作的。
为了确保您的框架被调用,您可以向框架子目录添加一些重定向存根。例如(基于您的示例)
抱歉,我不是 PHP 开发人员,所以也许我的redirection.php 是错误的想法。它只是说明在代码级别加入 2 个项目的可能方法之一。
You cannot mix two different projects in the same root directory. You should put at least one of them into subdirectory. That's how bzr-externals supposed to work.
To make sure your framework will be invoked you might add some redirection stub to framework subdirectory. E.g. (based on your example)
Sorry, I'm not PHP developer, so maybe my redirection.php is wrong idea. It's just illustration of one of the possible way to join 2 projects at the code level.