blog.hugopoi.net/deploy.sh

10 lines
357 B
Bash

#!/bin/bash
# Build
hugo
# Backup current deploy
ssh home.hugopoi.net sudo yunohost backup create --apps my_webapp
# Deploy full legacy and new blog
rsync -rlgoD --checksum --verbose www/ home.hugopoi.net:/var/www/my_webapp/www/
# Deploy only the new hugo blog
rsync -rlgoD --verbose --checksum --delete www/v2/ home.hugopoi.net:/var/www/my_webapp/www/v2/