|
|
@@ -10,16 +10,19 @@ tput setaf 1; echo "Deploy started at…"
|
|
|
date "+%H:%M:%S"
|
|
|
|
|
|
tput setaf 3; echo "Pulling From Source…"
|
|
|
+tput sgr0;
|
|
|
git pull
|
|
|
|
|
|
tput setaf 3; echo "Building binary…"
|
|
|
+tput sgr0;
|
|
|
go build
|
|
|
|
|
|
tput setaf 3; echo "Restarting Gitote Service…"
|
|
|
+tput sgr0;
|
|
|
sudo systemctl restart gitote
|
|
|
|
|
|
tput setaf 1; echo "Deploy ended at…"
|
|
|
date "+%H:%M:%S"
|
|
|
|
|
|
-tput setaf 2; echo "==> App is successfully deployed"
|
|
|
+tput setaf 2; echo "==> App is successfully deployed to Digitalcean server"
|
|
|
tput setaf 2; echo "==> https://gitote.in"
|