From: Matti A. <ma...@ik...> - 2002-11-08 11:23:05
|
Would it make sense to rename index.php to index-dist.php in CVS (and maybe in further releases as well)? Furthermore, DirectoryIndex in .htaccess could be "index.php index-dist.php". That way, you could safely update your local Wiki without overwriting the configuration. ... or how do you prefer to handle configuration files with CVS? Cheers, m. |
From: Joby W. <joby@u.washington.edu> - 2002-11-08 15:35:26
|
We are looking to change configuration settings. index.php will be replaced with: index.php -- just contains includes (in CVS as index2.php) config/config-dist.php -- default distribution settings config/config-user.php -- localized config settings This has been in CVS for a few weeks, but I have received no comment on implementation. It should be good to go. jbw Matti Airas wrote: > Would it make sense to rename index.php to index-dist.php in CVS (and > maybe in further releases as well)? Furthermore, DirectoryIndex in > .htaccess could be "index.php index-dist.php". That way, you could > safely update your local Wiki without overwriting the configuration. > > ... or how do you prefer to handle configuration files with CVS? > > Cheers, > > m. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |
From: Matti A. <ma...@ik...> - 2002-11-08 19:56:23
|
On Friday 08 November 2002 17:35, Joby Walker wrote: > index.php will be replaced with: > > index.php -- just contains includes (in CVS as index2.php) > config/config-dist.php -- default distribution settings > config/config-user.php -- localized config settings > > This has been in CVS for a few weeks, but I have received no comment > on implementation. It should be good to go. OK, good. It'd be nice, though, if there were no config-user.php at all in CVS, so that it's safe to do cvs updates (and maybe commits) without risk of hosing current configuration (or the default configuration in CVS). Then, config-user.php could be included (instead of currently being required), and if it's missing, a nag message with instructions to create an empty configuration file could be included in the header of each and every displayed page. Or alternatively, the user could be instructed to use the configurator in the works... :-) m. |
From: Joby W. <joby@u.washington.edu> - 2002-11-08 20:02:11
|
Since config-user.php is blank and should never need to be modified in CVS we shouldn't need to worry. Though, I agree that for packaging it becomes a problem since we don't want to overwrite someone's config-user.php with a blank file. Other views? jbw Matti Airas wrote: > On Friday 08 November 2002 17:35, Joby Walker wrote: > > >>index.php will be replaced with: >> >>index.php -- just contains includes (in CVS as index2.php) >>config/config-dist.php -- default distribution settings >>config/config-user.php -- localized config settings >> >>This has been in CVS for a few weeks, but I have received no comment >>on implementation. It should be good to go. > > > OK, good. It'd be nice, though, if there were no config-user.php at all > in CVS, so that it's safe to do cvs updates (and maybe commits) without > risk of hosing current configuration (or the default configuration in > CVS). Then, config-user.php could be included (instead of currently > being required), and if it's missing, a nag message with instructions > to create an empty configuration file could be included in the header > of each and every displayed page. Or alternatively, the user could be > instructed to use the configurator in the works... :-) > > m. > |
From: Matti A. <ma...@ik...> - 2002-11-08 21:15:17
|
On Friday 08 November 2002 22:02, Joby Walker wrote: > Since config-user.php is blank and should never need to be modified > in CVS we shouldn't need to worry. Though, I agree that for > packaging it becomes a problem since we don't want to overwrite > someone's config-user.php with a blank file. But the first time a developer with CVS write access commits his code changes to the repository and forgets to empty his config-user.php, his local config is sent to the repository... Been there, done that. :-( m. |
From: Joby W. <joby@u.washington.edu> - 2002-11-08 21:44:36
|
Ahh.... Sorry, I maintain seperate web and CVS/editing versions to avoid such problems. I also only commit particular files rather than all modified. But this is a worry. jbw Matti Airas wrote: > On Friday 08 November 2002 22:02, Joby Walker wrote: > > >>Since config-user.php is blank and should never need to be modified >>in CVS we shouldn't need to worry. Though, I agree that for >>packaging it becomes a problem since we don't want to overwrite >>someone's config-user.php with a blank file. > > > But the first time a developer with CVS write access commits his code > changes to the repository and forgets to empty his config-user.php, his > local config is sent to the repository... Been there, done that. :-( > > m. > |