1
I’m using Capistrano to deploy on 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 tries to use the SU command in the unicorn_init.sh file. I’ve done a lot of research and I can’t make progress. Does anyone have an idea of a possible solution?
what Gems is using for Capistrane? In case you are following a tutorial it would also help to know which one.
– Ismael