Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

integreated checkouts in SVN

Greetings.
I have a SVN repo with four folders:
/BuildCM
/Trunk
/Branch
/Tag

in my BuildCM folder is a database.php that holds my database parameters.  There are four of them.

DatabaseSTG.php
DatabaseTST.php
DatabasePRD.php

Depending on the environment I need that file to be checked out and sent to the application in the /root/config folder.

The root/config/database.php is the file for my dev box.  WHen I do a commit, I want the hook to perform an update to the staging environment, then I need DatabaseSTG.php to be pulled out of my SVN CMBuild and sent to /root/config/ folder.

If I do a svn co, will that override the whole folder?  I just want the one file to go into that folder.

What can I do?
Thanks.
0
Evan Cutler
Asked:
Evan Cutler
1 Solution
 
Daniel HelgenbergerCommented:
I hope I get this correct. I do something similar with symbolic links: maybe this will work for you as well? Eg,
1 Check out the repo to location other than /root/config
2 link the correct file to /root/config/database.php; depending on your envroment
3 run your program and read/write the file
4 do a commit

This can be scripted of course.
0
 
Evan CutlerAuthor Commented:
Thanks much.
if I come up with anything further, I'll re-post.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now