Project

General

Profile

Actions

Task #187

closed

Task #174: Automatically deploy blog on each fossil commit

Fossil: setup before-commit hooks to deploy nawan.my.id

Added by Nawan 13 days ago. Updated 13 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
VCS/Forge
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
0:15 h

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!"

Related issues 1 (0 open1 closed)

Copied from Infrastruktur - Task #167: Fossil: setup after-receive hooks to deploy nawan.my.idDeclinedNawan

Actions
Actions #1

Updated by Nawan 13 days ago

  • Copied from Task #167: Fossil: setup after-receive hooks to deploy nawan.my.id added
Actions #2

Updated by Nawan 13 days ago

  • Status changed from New to Resolved
  • % Done changed from 50 to 100

I decided to use the "before-commit" hooks on the local repository instead. Closed as resolved.

Actions

Also available in: Atom PDF