#!/bin/sh # deploy: deploy application in digitalocean server set -e echo "Deploy started at…" date "+%H:%M:%S" echo "Pulling From Source…" git pull echo "Building binary…" go build echo "Restarting Gitote Service…" sudo systemctl restart gitote echo "Deploy ended at…" date "+%H:%M:%S" echo "==> App is successfully deployed to the server" echo "==> https://gitote.example.com"