summaryrefslogtreecommitdiff
path: root/bin/publish
diff options
context:
space:
mode:
Diffstat (limited to 'bin/publish')
-rwxr-xr-xbin/publish15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/publish b/bin/publish
new file mode 100755
index 0000000..0ca651d
--- /dev/null
+++ b/bin/publish
@@ -0,0 +1,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!"