deploy 502 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. # deploy: deploy application in digitalocean server
  3. cat script/misc/oteascii.txt
  4. set -e
  5. tput setaf 1; echo "Deploy started at…"
  6. date "+%H:%M:%S"
  7. tput setaf 3; echo "Pulling From Source…"
  8. git pull
  9. tput setaf 3; echo "Building binary…"
  10. go build
  11. tput setaf 3; echo "Restarting Gitote Service…"
  12. sudo systemctl restart gitote
  13. tput setaf 1; echo "Deploy ended at…"
  14. date "+%H:%M:%S"
  15. tput setaf 2; echo "==> App is successfully deployed"
  16. tput setaf 2; echo "==> https://gitote.in"