durfdoen-2.0/deploy.sh

9 lines
253 B
Bash
Raw Normal View History

2020-02-28 02:01:02 +01:00
#!/bin/bash
bundle exec nanoc
2020-02-28 13:26:02 +01:00
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"