App-BundleDeps
view release on metacpan or search on metacpan
lib/App/BundleDeps.pm view on Meta::CPAN
mkdir /var/lib/svscan/MyApp-0.89
Now move to that directory, and create a C<run> script file. We'll assume we're deploying a fastcgi server:
#!/bin/sh
MYAPP_DIR=/home/apps/MyApp-0.89
PERL=/usr/local/bin/perl # I like to explicitly declare this, YMMV
# XXX - You may have to specify MYAPP_HOME/MYAPP_CONFIG
exec setuidgid app \
$PERL \
-Mlocal::lib=$MYAPP_DIR/extlib \
$MAYPP_DIR/script/myapp_fastcgi.pl \
-e \
-l /path/to/socket \
2>&1
You should probably set up run script for logging, but see the daemontools manual for that.
Now, create a symlink to where svscan is watching, typically /service or /etc/service:
( run in 1.023 second using v1.01-cache-2.11-cpan-5735350b133 )