[ic] Running Interchange 5 with Plack
sbatschelet at mac.com
Fri Sep 11 14:30:31 UTC 2015
> On Sep 11, 2015, at 9:24 AM, Jon Jensen <jon at endpoint.com> wrote:
> On Thu, 10 Sep 2015, Sam Batschelet wrote:
>> 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!
> Very cool, Sam! It's about time someone tried that.
> I'm really surprised that Plack will work with a compiled C binary. You're positive you weren't somehow running the Perl vlink.pl instead? If they're in the same directory I would be suspicious that Plack::App::CGIBin is getting fancy inferring the .pl suffix or something.
Yes this does seem amazing, to confirm I added the strace output to my gist for review.
More information about the interchange-users