From 21570efe672de32261960e620cf44265182d0f02 Mon Sep 17 00:00:00 2001 From: Aleksander Wasaznik Date: Tue, 13 Sep 2016 20:52:06 +0200 Subject: [PATCH] Add deploy script --- deploy.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..70d37d8 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# My little crappy deploy script +# It will upload all files not ignored by git + +files_not_ignored="$(git status --short | grep ^? | cut -d\ -f2- ; git ls-files)" +scp -r $files_not_ignored root@brzeczyszczykiewicz.pvv.ntnu.no:~grzegorz/grzegorz +ssh root@brzeczyszczykiewicz.pvv.ntnu.no systemctl restart grzegorz \ No newline at end of file