<p>Hi,<br>
I think making more complex config file will make headache for setup. It will affect on performance if we push routing tasks to OC framework.<br>
In tems or performace one need to keep things as simple as possible and separated. <br>
I will advise to separate multiple websites by webserver (apache or what ever) suggested by Christian. It gives almost zero overhead. </p>
<p>Cheers Arman.</p>
<div class="gmail_quote">On Feb 15, 2013 10:32 AM, "Christian Reiner" <<a href="mailto:foss@christian-reiner.info">foss@christian-reiner.info</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On Friday 15 February 2013 10:07:03 Jörn Friedrich Dreyer wrote:<br>
> I could upstream some code I wrote for a customer that reads an environment<br>
> variable to determine which config to read. If it is set to 'test'<br>
> .../config.php will become .../config.test.php<br>
<br>
independant of the question if such strategy makes sense at all:<br>
<br>
wouldn't it be better to keep that logic inside the config file? As to have<br>
more than a single config section in there and simply switch between them by<br>
evaluating an environment variable? The default branch could point to one<br>
instance or an error (both makes sense). And one could still include different<br>
files from there if that design appears more modular.<br>
The advantage of keeing the switch inside the config file is that it reduces<br>
confusion about why suddenly the changes I made in the config file don't<br>
apply. It keeps configuration at a single place.<br>
<br>
Cust my 2 cents...<br>
<br>
--<br>
Christian Reiner (arkascha)<br>
[ <a href="mailto:foss@christian-reiner.info">foss@christian-reiner.info</a> ]<br>
_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
</blockquote></div>