I'm trying to use this script to deploy Rails and Django applications but after looking at the source code I've encountered some specific rules like the creation of directories shared, logs, pids and source. It would be much better If you turn these rules into hooks in your environment. What do you think?
By the way, here's the diff file of my deploy script.
it's certainly far from finished, however I think we can come to some conclusion as to what a normal deployment requires. another thing I want to add is quicker reverting instead of using the whole deploy sequence, which will need some assumed directory structures as well