Skip to content
Permalink
8edef7e636
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (10 sloc) 348 Bytes
#!/bin/bash
#Get servers list
set -f
string=$PROD_DEPLOY_SERVER
array=(${string//,/ })
#Iterate servers for deploy and pull last commit
for i in "${!array[@]}"; do
echo "Deploy project on server ${array[i]}"
ssh -p 50505 -o StrictHostKeyChecking=no ubuntu@${array[i]} "cd /var/www/dev.herdzo.com/scholab/ && sudo git pull origin master"
done