Capristano falla al realizar deploy
There is a lot of failures we can expect deploying with Capistrano. I’m going to comment one of them. This failure appears executing a ‘cap deploy’ command, and it returns the following error:
Although, if we execute this command in the server,…
The couse of this error is that capristano expects that the ssh protoocol authentications works unmanned using the public key of the user. But for some reason I don’t know, the authentication fails.
To solve this problem we can use the following method:
In the file Capfile of our Rails project include the following line:
Setting this change and executing cap deploy capristano command ask us to type the password of the ssh connection with the server. It’s not a pretty solution, but it works. Al aplicar este cambio y ejecutar el cap deploy capristano nos pedirá que introduzcamos el pasword de nuestra conexión ssh con el servidor. No es una solución bonita, pero funciona.