Make sure user's public key (id_rsa.pub
) is in the ~/.ssh/authorized_keys
.
laptop$ ssh deployer@example.com
server$ mkdir -p /usr/local/projects/[project_name]/shared/[project_name].git
server$ cd /usr/local/projects/[project_name]/shared/[project_name].git
server$ git --bare init
server$ touch hooks/post-receive
server$ mkdir -p /usr/local/projects/[project_name]/current