[SP-pm] Conexão Catalyst com o Banco de dados Postgre
Wallace Reis
wallace at reis.org.br
Thu Nov 11 07:01:23 PST 2010
On 11/11/2010, at 11:51, Wallace Reis wrote:
> package MyForm;
>
> use Web::Simple;
http://search.cpan.org/perldoc?Web::Simple
git://git.shadowcat.co.uk/catagits/Web-Simple.git
> Tem mais linhas de código, mas você pode usar Plack e fazer deploy usando
> CGI, FCGI, Starman, etc, sem precisar escrever mais nada:
>
> $ plackup -s Starman -p 3000 MyForm
E ainda pode adicionar características a sua aplicação usando os Plack::Middlewares:
use Plack::Builder;
sub as_psgi_app {
my $class = shift;
my $app = $class->SUPER::as_psgi_app;
return builder {
enable 'Static',
path => qr{^/static},
root => './root';
enable 'ErrorDocument',
500 => '500.html',
404 => '404.html';
enable 'HTTPExceptions';
enable 'ContentLength';
enable 'Head';
$app;
};
}
http://search.cpan.org/perldoc?Plack
--
wallace reis/wreis http://wallace.reis.org.br/
More information about the SaoPaulo-pm
mailing list