~ben/web

ref: c257206142f887246608fd5ebbf4cc9fe518ba9c web/deploy -rwxr-xr-x 214 bytes
c2572061Ben Sima update deploy location 1 year, 3 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:~/public_html/

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