Permalink
1a5f7c9 Jun 24, 2015
@noelboss @deizel
executable file 32 lines (24 sloc) 619 Bytes
#!/bin/sh
LOG="logs/deeplio.log"
NOW=$(date +"%Y-%m-%d-%H%M%S")
echo "SSH Deploy Script run: $NOW
" >> $LOG
## More useful example:
#DEEPLIO="./"
#DEPLOY="./../deepl.io"
#LOG="./logs/deeplio.log"
#NOW=$(date +"%Y-%m-%d-%H%M%S")
## Start script:
#echo "
#--------------------------------------------------------
#NEW DEPLOYMENT: $NOW" >> $LOG
#git checkout master >> $LOG
## Clear untracked files:
#git clean -df >> $LOG
## Revert local changes:
#git checkout -- . >> $LOG
#git pull >> $LOG
# Copy some stuff around:
#cp $DEEPLIO/index.html $DEPLOY/
#cp $DEEPLIO/CHANGELOG.md $DEPLOY/
#echo "End Deploy." >> $LOG