PEP3CS7AUTZCHT2OXXBTT7ZH7SP5RM5OZCMEOKBQTHQGZQEVYQTAC
#!/bin/bash
set -e
rsync -avz server/migrations/ root@emallson.net:scorecard/migrations/
ssh root@emallson.net "cd scorecard && ../diesel migration run"
rsync -avz server/target/release/prog-score root@emallson.net:scorecard/prog-score.new
rsync -avz client/build/ root@emallson.net:scorecard/public/
ssh root@emallson.net "systemctl stop scorecard nginx && mv scorecard/prog-score.new scorecard/prog-score && systemctl start scorecard nginx"