[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@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@googlegroups.com.
> To unsubscribe from this group, send email to odynug+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/odynug?hl=en.
>