Deploy a Symfony project with Capifony on localhost

As soon as you’ll put your hands on Capifony, you’ll notice that this tool is born with an high role separation in mind. Due to the adoption of SSH as a deployment tool, your environment should count on, at least, a deployment/CI server and a test/production one.

What if, like in my case, you only have one test server, and you need to deploy everything olny on it? Use SSH on the loopbacl interface!

In order to get rid of the password, since most probably you are going to execute Capifony from a tool like Jenkins, you have to execute the following commands (from the very same user of the CI system):

$ ssh-keygen -t rsa
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ chmod og-wx ~/.ssh/authorized_keys