~ben/web

56ed4207dd14f6fb57e7721f4165112db66742ca — Ben Sima 11 months ago ae1c0d9
make deploy script callable from anywhere

now I can do ":!~/web/deploy" from vim/emacs, for example
1 files changed, 3 insertions(+), 2 deletions(-)

M deploy
M deploy => deploy +3 -2
@@ 4,6 4,7 @@ touch deploy.log

rsync -rv --del ~/public_html/ ben@bsima.me:/var/www/bsima.me

D=$(dirname "$0")
DATE=$(date +%Y.%m.%d..%H.%M)
SHA=$(git rev-parse HEAD)
echo "$DATE $SHA" >> deploy.log
SHA=$(git -C "$D" rev-parse HEAD)
echo "$DATE $SHA" >> $D/deploy.log