summaryrefslogtreecommitdiff
path: root/publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'publish.sh')
-rwxr-xr-xpublish.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/publish.sh b/publish.sh
new file mode 100755
index 0000000..031545d
--- /dev/null
+++ b/publish.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+mkdir -p ./public
+rm -r ./public/*
+hugo
+ssh root@vasthecat.ru 'rm -r /var/www/vasthecat.ru/*'
+scp -r ./public/* root@vasthecat.ru:/var/www/vasthecat.ru/
+ssh root@vasthecat.ru 'chown -R www-data:www-data /var/www/vasthecat.ru/'