Deployment Scripts

What are the best practices for deploying and updating applications across multiple environments.  If you use a more sophisticated deployment system please describe it here

CalPoly Deployment Script