psgi applications easy install with chef
"Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)" as said in documentation. Dealing with perl applications deployment, which I do with chef - modern open source platform for configuration, I have written psgi cookbook to configure, install psgi applications. Here are some simple exmaples of usage which are self explanatory.
This snippet of code install Catalyst application as fast cgi standalone server:
psgi_application 'Catalyst FCGI application' do operator 'Dancer' application_user 'user' application_home '/home/user/app/' script '/home/user/app/scripts/foo.psgi' config '/home/user/app/app.conf' action 'install' end
And this snippet of code installs Dancer application as Starman web server:
psgi_application 'Dancer Starman application' do operator 'Dancer' server 'Starman' port '5010' application_user 'user' application_home '/home/user/app/' script '/home/user/app/scripts/foo.psgi' action 'install' end
Checkout http://community.opscode.com/cookbooks/psgi for details.
Cool! How are you doing the actual deployment and dependency resolution? It looks like your cookbook runs plackup directly without anything like carton to manage a local library.
Hi David! Psgi cookbook only installs init scripts infrastucture. Now it supports centOS, debian and ubuntu. It's not intended to manage cpan packages prerequisitives.