SSH as root into the server:
ssh root@123.123.123.123 # Replace with the real ip
Create deployer user:
groupadd admin
adduser deployer --ingroup admin
Avoid a sudo hang when installing rbenv:
sudo vim /etc/sudoers
# add in the following line
%admin ALL=(ALL) NOPASSWD:ALL
cap deploy:install
cap deploy:setup
cap deploy:cold
To update the code in ther server only one of these commands is need it:
cap deploy
cap deploy:migrations # The same as the previous one, but this one also runs the pending migrations