summaryrefslogtreecommitdiff
path: root/Justfile
blob: a98341a272c54a8165b584cd4659d8962671d198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Sci-Fi Book Showcase

# Default target: build the site
default: build

# Build the site (embeds summaries into books.json)
build:
    node build.js

# Start webserver and open in Firefox
open:
    -pkill -f "serve.js" 2>/dev/null
    sleep 1
    node serve.js 9090 &
    sleep 1
    firefox http://localhost:9090

# Stop the webserver
stop:
    -pkill -f "serve.js" 2>/dev/null

# Deploy dist directory to remote server
dist:
    rsync -avz --delete dist/ f0:/data/nfs/k3svolumes/apache/scifi/