Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Generating change not automatically?


Is there a way to automatically generate an email with what changed when a new version of a site is published? Say, I have a page with feature descriptions & I make a change, is it possible to have a diff run between the old and new versions and send the diff out automatically in an email?

Satyadeep Musuvathy
Monday, April 12, 2004

You can run a script after you publish, and before you publish.  What you put in the script is up to you.

joel goldstick
Monday, April 12, 2004

Following on from the answer above:

Write a script that runs before FTPing the files to the server that grabs the citydesk.xml file from your server and stores it somewhere locally.

Write another script that runs after FTPing the files to the server. This one grabs the new citydesk.xml file from the server and diffs it with the one stored by the other script, and emails you the diff output.

It's not pretty, but it would tell you which files were new, modified or deleted. You could do extra processing in the script to parse the XML and present the info in a more human-readable format.

Darren Collins
Monday, April 12, 2004

Perhaps it would be helpful if the xml file were also stored locally?  A few useful addins could probably run off it.  Not just a diff, but anything else that wanted to analyse the content of the site.   

AJ Finch
Wednesday, April 28, 2004

*  Recent Topics

*  Fog Creek Home