[ic] Running Interchange 5 with Plack

Sam Batschelet sbatschelet at mac.com
Fri Sep 11 02:30:26 UTC 2015


Fellow innovators, 
I wanted to share my research on running Interchange 5 with Plack.  Recently a lot of my development has been with Dancer and the preferred stack is typically something like Nginx, Plack and Starman.  After listening to a few people looking for alternatives to Apache and reluctancy to use Nginx with FastCGI with Interchange.  I wondered would it be possible to run Interchange 5 in a NPS stack.  I started researching existing modules and came across Plack::App::CGIBin written by Tatsuhiko Miyagawa.  To my delight my first test with the example in the POD had Interchange with a c compiled cgi-file running on Plack!  I don’t often get easy wins on a project like this so I will give Tatsuhiko the credit for being amazing but this application could open up a lot of possabilites for Interchange.  I have gisted an example from my camp to get you started but think about Plack::Middleware and how it could change your project.  Also consider how much closer this puts your env to Dancer and how IC5 and Dancer might be able to work together.  Perhaps a cleaner Plack solution to Interchange is in the future?  Interesting egh?

Enjoy!,
-Sam

https://gist.github.com/sbatschelet/69550995a42795d6ab9e


More information about the interchange-users mailing list