[dokuwiki] Re: DokuWiki Farms Idea
- From: chi@xxxxxxxxxxx
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 22 Jun 2008 16:54:03 +0200
Gerry Weißbach writes:
Am 22.06.2008 um 15:50 schrieb chi@xxxxxxxxxxx:
Andreas Gohr writes:
My idea was to add a new event DOKU_INIT. This would allow to
create an
action
plugin which interferes with DWs init process where all the
constants are
defined.
I'm not 100% I understood you correctly, but this is a bit of a
chicken-egg problem. DokuWiki needs to know where to look for plugins
to load them. It will need the constants your plugin wants to define
to find the plugin to define the constants to...
Ok, I got it working as I thought :), it seems to work well and
without
problems, though I guess it needs a little bit of further testing to
be really
sure. Further informations about this "proof of concept" cand be
found at:
looks like this is a little more sophisticated version of my Domain-
Switching Plugin which worked without action plugins - but I it does a
hack to the local.config - http://gammaproduction.de/english/dokuwiki/plugins/domainswitching
I don't want to nit-pick but I've downloaded the archive and it contains an
action plugin ;-).
The important difference is the new even DOKUWIKI_INIT which allows you to do
all kinds of nifty tricks with an action plugin.
The action plugin I've used for this proof of concept is fairly simple.
There's lot's of room for setting up different "instances" in other ways. For
example you could create an action plugin that that sets up the data
directories and the basic configurations for you the first time the domain is
accessed. All that would be left to do would be to add a new virtual host to
your webserver config and bam the first time you access it via a browser it's
there. And I can imagine that this could be automated further :-).
Cheers,
Chi
- Follow-Ups:
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Gerry Weißbach
- References:
- [dokuwiki] DokuWiki Farms Idea
- From: chi
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Andreas Gohr
- [dokuwiki] Re: DokuWiki Farms Idea
- From: chi
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Gerry Weißbach
Other related posts:
- » [dokuwiki] DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
- » [dokuwiki] Re: DokuWiki Farms Idea
Am 22.06.2008 um 15:50 schrieb chi@xxxxxxxxxxx:
Andreas Gohr writes:My idea was to add a new event DOKU_INIT. This would allow to create anactionplugin which interferes with DWs init process where all the constants aredefined.I'm not 100% I understood you correctly, but this is a bit of a chicken-egg problem. DokuWiki needs to know where to look for plugins to load them. It will need the constants your plugin wants to define to find the plugin to define the constants to...Ok, I got it working as I thought :), it seems to work well and without problems, though I guess it needs a little bit of further testing to be really sure. Further informations about this "proof of concept" cand be found at:
looks like this is a little more sophisticated version of my Domain- Switching Plugin which worked without action plugins - but I it does a hack to the local.config - http://gammaproduction.de/english/dokuwiki/plugins/domainswitching
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Gerry Weißbach
- [dokuwiki] DokuWiki Farms Idea
- From: chi
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Andreas Gohr
- [dokuwiki] Re: DokuWiki Farms Idea
- From: chi
- [dokuwiki] Re: DokuWiki Farms Idea
- From: Gerry Weißbach