summaryrefslogtreecommitdiff
path: root/bin/publish
blob: 0ca651d88d47a077b323a4148908aad3f1399dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

set -e

# Change to the project root directory
cd "$(dirname "$0")/.."

echo "Building site..."
cd home
clojure -M -e "(require 'core) (core/-main) (shutdown-agents)"

echo "Publishing to server..."
scp -r target/html/* git@jakezerrer.com:/var/www/html/

echo "Site published successfully!"