Site: db.php

Site: db.php

Discussion between Spring developers.
Post Reply
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Site: db.php

Post by Tim Blokdijk »

I'm going to give my own development process a spin as described in https://taspring.clan-sy.com/svn/spring ... tation.pdf
I will give AF post rights here, some of you might think he is a bit of a challenge to work with.. and I'm not really excluding myself here. But he likes to work on the site and as the guy with the highest postcount he could actually get this forum more active. :twisted:

Anyway, I'm going to propose a small change to the site code that handles database connections. This is not highly critical code nor is there any real diffrence in vision with me, Fnordia or AF on its implementation. AF has even already made a patch that implemented most of the work. I just like to see how a more structured development process works out in practice.
So bare with me here. :P

--------------------------

Plan: Abstract database configuration details

Description
I like to abstract the way the site sets up a database connection so it's harder to acedently commit real passwords to svn and to make the code more exchangeble with the production and development environments without accidentally making connections to the wrong database back-end. (e.g. prod. env. connecting to the dev. env. database and visa versa.)

This would fit into the requirements of the "Webmasters" (that's the site developers (me, AF) and maintainer (Fnordia)).

Implementation
Have a file below www-root contain the database connection details, this file would be read each time the site translation, messageboard, wiki or other part of the site needs to set up a db connection.
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

I decided to make a copy of this post in the development forum (here) as a trial run. AF made this suggestion and it also allows more people to comment on the process itself.
Post Reply

Return to “Dedicated Developer Discussion”