<div dir="ltr">haha<div>eu ia falar que não deve ser dificil montar as env's que o CGI precisa, e ia procurar como o <a href="http://php-fpm.org/">http://php-fpm.org/</a> recebe essas informações...</div><div>mas</div>

<div>could not connect to the database (DSN: default) /<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/5 Tiago Peczenyj <span dir="ltr"><<a href="mailto:tiago.peczenyj@gmail.com" target="_blank">tiago.peczenyj@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">vc nao poderia usar o <span style="background-color:transparent;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;color:rgb(51,51,51);line-height:19px">Plack::App::Proxy ?</span><div>



<br></div><div><a href="https://github.com/peczenyj/speak-bro" target="_blank">https://github.com/peczenyj/speak-bro</a><br></div><div><br></div><div>bastaria configurar corretamente</div></div><div class="gmail_extra"><br>

<br><div class="gmail_quote">

2013/9/5 Rafael Silveira <span dir="ltr"><<a href="mailto:dev.silveira@yahoo.com" target="_blank">dev.silveira@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div class="h5">

<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Senhores mongers, boa tarde</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>Surgiu uma dúvida em minha cachola.</span></div>



<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>Existe alguma forma de subir um servidor http utilizando o Plack, e quando um determinada url for utilizada, ele redirecionar as requisições para o php-fpm (fastcgi)?</span></div>



<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>Alguém ai já fez isso ou tem alguma dica?</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>Estava vendo algo sobre Plack::App::FCGIDispatcher. Mas não consegui fazer ele rodar.</span></div>



<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>Se alguém tiver um exemplo, seria muito bom.</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



<span>Lembrando que não estou usando arquivo .sock para me conectar, uso o hosted mode (<a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a> é onde o meu php-fpm está "escutando").</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">Não quero usar nginx ou coisas do tipo.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



Na verdade quero criar um script que faça algo como, scriptPerl up homologacao (inicia um servidor http na porta X que qndo alguém se conecta, ele envia requisições HTTP para o php-fpm utilizando os
 scripts da pasta homologacao)</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



Desde de já agradeço.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">



[]'s</div><div></div><div> </div><div>=pod</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,clean,sans-serif">Rafael C. da Silveira</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,clean,sans-serif">



<span style="font-weight:bold">Analista Desenvolvedor.</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,clean,sans-serif"><a rel="nofollow" href="http://www.linkedin.com/profile/view?id=203095528" style="font-family:arial,helvetica,clean,sans-serif" target="_blank">LinkedIn</a> - <a rel="nofollow" href="http://github.com/xshifty" style="font-family:arial,helvetica,clean,sans-serif" target="_blank">Github</a> - <a rel="nofollow" href="http://rosalind.info/users/xshifty/" target="_blank">Rosalind.info</a></div>



<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,clean,sans-serif">=cut</div>  </div></div><br></div></div>=begin disclaimer<br>
   Sao Paulo Perl Mongers: <a href="http://sao-paulo.pm.org/" target="_blank">http://sao-paulo.pm.org/</a><br>
 SaoPaulo-pm mailing list: <a href="mailto:SaoPaulo-pm@pm.org" target="_blank">SaoPaulo-pm@pm.org</a><br>
 L<<a href="http://mail.pm.org/mailman/listinfo/saopaulo-pm" target="_blank">http://mail.pm.org/mailman/listinfo/saopaulo-pm</a>><br>
=end disclaimer<br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Tiago B. Peczenyj<br>Linux User #405772<br><br><a href="http://about.me/peczenyj" target="_blank">http://about.me/peczenyj</a>
</font></span></div>
<br>=begin disclaimer<br>
   Sao Paulo Perl Mongers: <a href="http://sao-paulo.pm.org/" target="_blank">http://sao-paulo.pm.org/</a><br>
 SaoPaulo-pm mailing list: <a href="mailto:SaoPaulo-pm@pm.org">SaoPaulo-pm@pm.org</a><br>
 L<<a href="http://mail.pm.org/mailman/listinfo/saopaulo-pm" target="_blank">http://mail.pm.org/mailman/listinfo/saopaulo-pm</a>><br>
=end disclaimer<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="color:rgb(51,51,51);font-size:x-small">Saravá,</span></div><div><span style="color:rgb(51,51,51);font-size:x-small">Renato CRON</span></div>

<div><div style="text-align:right"><font size="1" color="#333333"><a href="http://www.renatocron.com/blog/" target="_blank">http://www.renatocron.com/blog/</a></font></div></div><div style="text-align:right"><font size="1" color="#333333"><a href="http://twitter.com/#!/renato_cron" target="_blank">@renato_cron</a></font></div>


</div>