I'm getting this error while trying to deploy my Symfony2 application to production server.
--> Downloading Composer
* executing "sh -c 'cd /home/myproject/releases/20150427081943 && curl -s http://getcomposer.org/installer | php'"
Preparing to execute command: "sh -c 'cd /home/myproject/releases/20150427081943 && curl -s http://getcomposer.org/installer | php'"
Execute ([Yes], No, Abort) ? |y| y
servers: ["myproject.net"]
[myproject.net] executing command
** [out :: myproject.net] <html>
** [out :: myproject.net] <head><title>302 Found</title></head>
** [out :: myproject.net] <body bgcolor="white">
** [out :: myproject.net] <center><h1>302 Found</h1></center>
** [out :: myproject.net] <hr><center>nginx</center>
** [out :: myproject.net] </body>
** [out :: myproject.net] </html>
command finished in 156ms
So curl -s http://getcomposer.org/installer|php
command returns 302 and i'm not shure how to fix this in my script.
I've seen on getcomposer.org that curl uses additional -S
flag with the -s
flag, like this curl -sS http://getcomposer.org/installer|php