Re: OT: Version Control

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69299
interpreted = N
texte = Clint Davis wrote: > We're considering moving to Subversion and having the main repository on the > staging server with each developer checking out files and testing on their > own machine. Developers would commit changes back to the repository on the > staging server once they're satisfied with the file. Then, they'd update the > production server when the files are ready to go live. That's what we do (by "we" I mean my old company), using a Perl module I wrote myself, SVN::Notify::Mirror (available from CPAN). What this does is to automatically keep the test server in sync with any commit to trunk, and the production server is kept in sync with the latest tag. We (I mean they) actually use another module that I currently support, SVN::Notify, to create a post-commit script that is the data and the script rolled into one. Here's a complete post-commit script: #!/usr/bin/perl -MSVN::Notify::Config=$0 --- #YAML:1.0 '': PATH: "/usr/bin:/usr/local/bin" '/path': handler: HTML::ColorDiff to: dev-list@example.com '/path/trunk': handler: Mirror to: '/path/on/local/' '/path/tags': handler: Mirror::SSH to: "/path/on/remote/" ssh-host: "remote_host" ssh-user: "remote_user" ssh-tunnel: "10.0.0.2" ssh-identity: "/home/user/.ssh/id_rsa" tag-regex: "RELEASE_" What that does is send colorized HTML e-mails for *any* commit to dev-list@example.com. Anything committed to trunk is mirrored to the local directory /path/on/local/. Anything commited to tags which matches the regex RELEASE_ gets mirrored via SSH to remote_host, which doesn't have a direct connection to the repository so that the connection is tunneled. HTH John p.s. No, I have not been able to get unsubscribed... ;-) ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OT: Version Control ( John Peacock 2007)
  2. Re: OT: Version Control ( "Nitai @ ComputerOil" 2007)
  3. Re: OT: Version Control ( Clint Davis 2007)
  4. Re: OT: Version Control ( "Nitai @ ComputerOil" 2007)
  5. Re: OT: Version Control ( Clint Davis 2007)
  6. Re: OT: Version Control ( "Nitai @ ComputerOil" 2007)
  7. Re: OT: Version Control ( Clint Davis 2007)
  8. Re: OT: Version Control ( "Nitai @ ComputerOil" 2007)
  9. Re: OT: Version Control ( Clint Davis 2007)
  10. Re: OT: Version Control ( "Nitai @ ComputerOil" 2007)
  11. Re: OT: Version Control ( John Peacock 2007)
  12. Re: OT: Version Control ( Jesse Proudman 2007)
  13. Re: OT: Version Control ( Clint Davis 2007)
  14. Re: OT: Version Control ( Jesse Proudman 2007)
  15. Re: OT: Version Control ( Clint Davis 2007)
  16. Re: OT: Version Control ( Jesse Proudman 2007)
  17. OT: Version Control ( Clint Davis 2007)
Clint Davis wrote: > We're considering moving to Subversion and having the main repository on the > staging server with each developer checking out files and testing on their > own machine. Developers would commit changes back to the repository on the > staging server once they're satisfied with the file. Then, they'd update the > production server when the files are ready to go live. That's what we do (by "we" I mean my old company), using a Perl module I wrote myself, SVN::Notify::Mirror (available from CPAN). What this does is to automatically keep the test server in sync with any commit to trunk, and the production server is kept in sync with the latest tag. We (I mean they) actually use another module that I currently support, SVN::Notify, to create a post-commit script that is the data and the script rolled into one. Here's a complete post-commit script: #!/usr/bin/perl -MSVN::Notify::Config=$0 --- #YAML:1.0 '': PATH: "/usr/bin:/usr/local/bin" '/path': handler: HTML::ColorDiff to: dev-list@example.com '/path/trunk': handler: Mirror to: '/path/on/local/' '/path/tags': handler: Mirror::SSH to: "/path/on/remote/" ssh-host: "remote_host" ssh-user: "remote_user" ssh-tunnel: "10.0.0.2" ssh-identity: "/home/user/.ssh/id_rsa" tag-regex: "RELEASE_" What that does is send colorized HTML e-mails for *any* commit to dev-list@example.com. Anything committed to trunk is mirrored to the local directory /path/on/local/. Anything commited to tags which matches the regex RELEASE_ gets mirrored via SSH to remote_host, which doesn't have a direct connection to the repository so that the connection is tunneled. HTH John p.s. No, I have not been able to get unsubscribed... ;-) ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WCS Newbie question (1997) Cannot calculate prices (1997) warning... Banner Rotation (2000) Help (1999) charging? (2001) Plain Language Manual? (1998) ledata&gedata in same search (1996) Searching multiple Databases (1997) Sorting by date (1997) RE: Shopping Cart Questions (1998) Security Tip (1996) pc (1997) truncating email part II (1997) bug in [SendMail] (1997) Web Merchant process after credit card clears (1998) Large Database Issue (possible bug) (2004) WebCatalog NT beta 18 now available (1997) Secure Server not remembering discounts (1998) text size limitation (1997) PCS search results page (1998)