1999 The Central Ohio Linux User Group. // All rights reserved. // Released under the GPL, v. 2. See: LICENSE.TXT // This file: template/header.php // // // echo "\n"; print ""; echo "\n"; echo ""; echo ""; echo "Rossberry.com - The Home of the Mobile Linux Lab"; if ($title != "") { echo " -- $title"; } echo "\n"; // The next line lets us link the header page below // the top ditrectory, and have the buttons work // RPH -- 011124 echo ""; // // scheme://user:pass@host:port/path?query#fragment // //$REQUEST_URI = $_SERVER[REQUEST_URI]; $url=parse_url("$REQUEST_URI"); $svr=$url[host]; //$svr="www.rossberry.net"; $svr="www.rossberry.com"; $server = $server_name ; print ""; ?>

Rossberry.com

Home of the Mobile Linux Lab

Home Overview Philosophy Infrastructure
Version Control Blogs Files cfengine

Subversion usage

Day to day usage

  • The main subversion repo lives in dom0
    • sasl auth is setup
    • my personal userid and root are given id's
  • My mobile copy of the web site is on the "master" vm
  • I fire up the vm's, then ssh to master (as root using .ssh/config magic)
  • Edit, add, modify in /var/www/html. svn ci as I go
  • When I shutdown, I go back to dom0 into an svn sandbox in my home directory and do an "svn up" so I have a copy on dom0 as well
  • When I'm connected I run
    svnsync sync svn+ssh://rossberry.net/PATH_TO_SVN_REPO
    
    which updates a readonly copy on rossberry.net with my local changes
  • There is a cron job on rossberry.net that runs every 15 minutes
    0,15,30,45 * * * * cd /var/www/html;svn up
    

That's it. There are several other arrangements I could use, but this works for me.

1999 The Central Ohio Linux User Group. // All rights reserved. // Released under the GPL, v. 2. See: LICENSE.TXT // This file: template/footer.php // print "


"; // print " \n \n \n "; // $url=parse_url("$REQUEST_URI"); $scheme = $url[scheme]; $host = $url[host]; $whereami = $url[path]; $basename = exec("basename $whereami"); $REFERRER=exec("basename $whereami .php"); $SMURF = exec(" ls | grep $REFERRER | grep txt "); if ($SMURF != "") { ## echo ""; ## This next line of code opens the displayed code in a new window when uncommented echo ""; echo "\"View of "; echo ""; echo "$basename"; } else { print "\n"; print "\n"; } // print " Contact mll@rossberry.com Copyright\n © 2010, 2011 Jim Wildman.\n "; print "
All rights reserved.
"; ?>