Actions
Task #187
closedTask #174: Automatically deploy blog on each fossil commit
Fossil: setup before-commit hooks to deploy nawan.my.id
Description
This is a follow-up to #167.
#!/bin/bash
cd ~/fossils/www
# 1. Build the site
echo "Building Hugo site..."
hugo
# 2. Sync to server
# Replace 'user', 'server_ip', and '/var/www/html' with your actual details
echo "Syncing files to server..."
rsync -avz --delete public/ hostbrr:/home/nawanmyi/domains/nawan.my.id/public_html
echo "Deployment complete!"
Actions