Reconfiguring the directory and file structure for svn
EDIT: svn on the server is working now -- partly my fault, partly an Ubuntu bug with Gnome keyring. I've populated it, but I now need to move over my working copy from the local svn to the server one.
Because there are so many projects using AdaptiveDB code, in various versions, I've decided to manage the project with SVN. Initially, I asked for a repository on our SVN server (revision.tapor.uvic.ca, which is actually Lettuce), but for various reasons that isn't working properly yet; it's there, but I don't seem to have permission to check anything out or make directories. In the meantime, I set up subversion on the local machine and started working with that.
The primary requirement was to have the mysql credentials stored in a location outside all the code files. I've done that by moving them to a directory structure like this:
- Credentials
- editor
- creds.php
- reader
- creds.php
- editor
One or other of these files is require_once
d at the head of any file that needs to make connections, ahead of the connect.php
file, which I've now moved to /db/
. The credentials files can be excluded from the repo so that they're not overwritten by a checkout.
I've tested the new structure with the adaptiveDBdev db, and it all seems to be working fine. I'll have to migrate the other projects over to the new structure carefully, as well as updating their own dev-to-live rsync scripts appropriately.