[Omaha.pm] [odynug] Plack - 1 line web app

Matt Secoske secoskem at gmail.com
Mon Mar 21 15:24:25 PDT 2011


interesting... thats basically a Rack interface.  

http://rack.rubyforge.org/

- Matt


On Mar 21, 2011, at 5:22 PM, Jay Hannah wrote:

> Day 1 at my new day job. They use PSGI/Plack for web app development:
> 
>   http://plackperl.org/
> 
> Here's a sample application:
> 
> $ cat app.psgi 
> sub { [ 200, [ 'Content-Type' => 'text/html' ], [ 'Hello World' ] ] }
> 
> And here's me launching a web server of that application:
> 
> $ plackup 
> HTTP::Server::PSGI: Accepting connections at http://0:5000/
> 
> And here's what Firefox sees:
> 
> http://localhost:5000/
> Hello World
> 
> Web app development doesn't get briefer than that.   :)    Thanks to PSGI the exact same app can then deploy to Apache or nginx or whatever PSGI-compatible server you want. It's a brave new world for my aging brain...   :)
> 
> Jay Hannah
> Software Architect
> jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "Omaha Dynamic Language User Group" group.
> To post to this group, send email to odynug at googlegroups.com.
> To unsubscribe from this group, send email to odynug+unsubscribe at googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/odynug?hl=en.
> 



More information about the Omaha-pm mailing list