I'm looking for a initscript to make usage of perlbrew on a webserver running a nginx as proxy for an perl catalyst application. I'm currently trying to start the app via
source $PERLBREW
execute "perlbrew use perl-5.14.4@devel"
execute "mkdir -p $PID_PATH && $START_ICOS_APP > /dev/null 2>&1 &"
echo "$DESC started"
but it appers it cannot find the local perl installation. $PERLBREW is set to my perlbrew folder.
This is a good step by step guide how to do this, but it is French (but still understandable).
http://www.catapulse.org/articles/view/124
I copied here:
Setup the user which is going to run the catalyst app (www-data in this example)
(I assume that your application name is myapp, replace it with yours.)
create /etc/nginx/sites-enabled/myapp
Create /var/www/myapp/myapp.fastcgi.initd
Set permission on files and create the proper init file:
Start your application and bounce your webserver: