deploy 568 B

123456789101112131415161718192021222324252627282930
  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. tput sgr0;
  9. git pull
  10. tput setaf 3; echo "Building binary…"
  11. tput sgr0;
  12. go build
  13. tput setaf 3; echo "Restarting Gitote Service…"
  14. tput sgr0;
  15. sudo systemctl restart gitote
  16. tput setaf 1; echo "Deploy ended at…"
  17. date "+%H:%M:%S"
  18. tput setaf 2; echo "==> App is successfully deployed to Digitalcean server"
  19. tput setaf 2; echo "==> https://gitote.in"
  20. tput sgr0;