deploy 397 B

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