~ben/web

ref: 01c0e5fe9945069c5544c5f259873cd8411e624e web/deploy -rwxr-xr-x 217 bytes View raw
01c0e5feBen Sima typography tweaks 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh

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 -C "$D" rev-parse HEAD)
echo "$DATE $SHA" >> $D/deploy.log