I have a CodeIgniter app which has a controller to invoke Capistrano. Like so:
class Deploy extends Controller {
function deploy()
{
parent::Controller();
}
function index()
{
$output = shell_exec("cap deploy");
echo $output;
}
}
For some reason if I call shell_exec('ls -a') I get output. But calling cap deploy does nothing and returns nothing. Anybody have any ideas?