git config --global user.name "Hudson”
git config --global user.email "[email protected]"
URL of Repository: /media/psf/example.com.api
�NOTE: I cheated by linking a folder to my VM
rsync -avzH -e ssh --progress $WORKSPACE/ [email protected]:~/apps/api/releases/$BUILD_ID
ssh [email protected] <<ssh-session
########## BEGIN: ssh commands ##########
cp ~/apps/api.example.com/releases/${BUILD_ID}/ops/etc/apache2/sites-available/example.com.api.vhost /etc/apache2/sites-available/
ln -nfs /etc/apache2/sites-available/example.com.api.vhost /etc/apache2/sites-enabled/
ln -nfs ~/apps/api.example.com/releases/${BUILD_ID} ~/apps/api.example.com/current
sudo /usr/sbin/service apache2 restart
########## END: ssh commands ##########
ssh-session