rm -rf $(ls /var/backup/site | head -1)
ls /var/backup/site | head -1
location /one/ {
rewrite ^/one/$ /$1 break;
proxy_pass http://ipone:portone;
proxy_set_header X-Real-IP $remote_addr;
}
location /two/ {
rewrite ^/two./$ /$1 break;
proxy_pass http://iptwo:porttwo;
proxy_set_header X-Real-IP $remote_addr;
}
sshpass -pPASSWORD ssh -T git@github.com cd example.com/www;git checkout master;git pull
ssh -T git@github.com cd example.com/www;git checkout master;git pull