I'm using capistrano to deploy to Amazon.
Capistrano + Unicorn + Nginx + Ec2
When I go to deploy: cold, it gives the following error:
servers: ["ec2-xx-xxx-xx-xx.sa-east-1.compute.amazonaws.com"]
[ec2-xx-xxx-xx-xx.sa-east-1.compute.amazonaws.com] executing command
[err :: ec2-xx-xxx-xx-xx.sa-east-1.compute.amazonaws.com] su: must be run from a terminal
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '2.1.0' -c '/etc/init.d/unicorn_app start'" on ec2-xx-xxx-xx-xx.sa-east-1.compute.amazonaws.com
The problem is that it attempts to use the SU command in the unicorn_init.sh file. I researched a lot and I can not make progress. Anyone have an idea of a possible solution?