ic5+plack+nginx
I have been successfully running Interchange 5 using a stack of Plack + Nginx in production since February, 2016 on a busy site, yoursole.com
Here are the relevant config snippets:
app.psgi:
use Plack::Builder;
use Plack::App::WrapCGI;
builder {
# restart interchange
my $ic = `/path/to/interchange/bin/interchange -r`;
if (!$ic) {
print "ERROR: failed to restart interchange\n";
}
else {
print $ic . "\n";
}
# Mount paths
mount "/catalog" => Plack::App::WrapCGI->new( script => "/path/to/interchange/bin/catalog", execute => 1 )->to_app;
};
plackup command:
plackup -s Starman --workers=5 -p 5001 -a /path/to/app.psgi -D
nginx:
proxy_pass http://localhost:5001/catalog;
posted at 2016-06-23T05:58:50 by baerg