Add deploy.sh
This commit is contained in:
parent
78a790400d
commit
af9d0455f9
1 changed files with 13 additions and 0 deletions
13
deploy.sh
Executable file
13
deploy.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "Pulling latest..."
|
||||
git pull
|
||||
|
||||
echo "Building..."
|
||||
go build -o overte-api .
|
||||
|
||||
echo "Restarting service..."
|
||||
sudo systemctl restart overte-api
|
||||
|
||||
echo "Done."
|
||||
Loading…
Add table
Reference in a new issue