durfdoen-2.0/deploy.sh
Robbe Van Herck 8a90f41038 Fix links
2020-02-28 13:26:02 +01:00

8 lines
253 B
Bash
Executable file

#!/bin/bash
bundle exec nanoc
date="`date --iso-8601=seconds`"
scp -rP 2222 output/ "durfdoen@157.193.231.142:/home/durfdoen/builds/$date" &&
ssh durfdoen@157.193.231.142 -p 2222 "rm /home/durfdoen/public && ln -s builds/$date /home/durfdoen/public"