#1226: Suport for multiple public directory
-------------------------------+--------------------------------------------
Reporter: mug...@… | Owner: impl
Type: enhancement | Status: closed
Priority: normal | Milestone: 1.0.3
Component: build | Version: 1.0.2
Severity: normal | Resolution: wontfix
Keywords: | Has_patch: 0
-------------------------------+--------------------------------------------
Comment(by felix):
It's wontfix because it's simple to roll your own custom tailored solution
as pointed out above and we cannot cater for all special cases. We provide
a standard solution that fits most use-cases and easy to implement hooks
for special cases. The fact that the pub directory must currently exist is
a mere nuisance but not a show stopper. I only wanted to point that out so
you don't remove the directory and wonder why the build system breaks.
Having multiple dispatcher files for multiple contexts cannot be done by
editing dev/pub since the default task only allows you to create one
single environment in one go, so either all dispatcher files need to have
a fixed env which sort of defeats the purpose or you need to do some
clever hacking in your templates or roll your own clever build task.
There's even more ways of handling the issue at hand. You can for example
rely on an environment variable set by the webserver to determine the
environment. You're already not certain which of your two solutions is
better. Some may want the second of your solutions, some may not have the
required permissions and thus have to use the first. Others may want
{{{
- app
- pub
| - mobile
| - web
}}}
and others again may prefer yet another solution. Which one is better? We
can't decide that for you, use whatever suits you best. We're talking
about a 10-line addition to your projects build.xml that perfectly fits
your setup.
Please also note that both of your solutions will currently break the
build system. You'll need to provide an empty directory named "pub" in the
expected location.
--
Ticket URL: <http://trac.agavi.org/ticket/1226#comment:5>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets