summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rw-r--r--deploy.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100644
index 0000000..e5be452
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+
+PROJECT_DIR="/srv/0xhenrique-blog"
+
+cd "$PROJECT_DIR"
+
+echo "Pulling latest changes..."
+git pull origin master
+
+# Build step skipped since we use Emacs to generate the site
+
+echo "Reloading nginx..."
+systemctl reload nginx
+
+echo "Deploy complete!"