fix deploy script
This commit is contained in:
parent
2b07f43b56
commit
da25a47103
@ -15,6 +15,9 @@ main() {
|
||||
echo "Building binary..."
|
||||
go build -o "$BINARY_NAME"
|
||||
|
||||
echo "Killing process on remote server..."
|
||||
sshpass -e ssh "$DEPLOY_USERNAME@$DEPLOY_ADDRESS" -t "pkill $BINARY_NAME"
|
||||
|
||||
echo "Deploying files..."
|
||||
sshpass -e scp -r ./* "$DEPLOY_USERNAME@$DEPLOY_ADDRESS:$DEPLOY_PATH"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user