Silki

 view release on metacpan or  search on metacpan

eg/ubuntu-init.d/silki  view on Meta::CPAN


# To install this into the /etc/rc*.d directories you can run this command as
# root:
#
# update-rc.d silki start 70 2 3 4 5 . stop 05 0 1 6 .

. /lib/lsb/init-functions

LISTEN="127.0.0.1:13000"
RUNDIR="/var/run/silki"
PIDFILE="$RUNDIR/starman.pid"
STARMAN="/usr/local/bin/starman"
APP="/usr/local/bin/silki.psgi"
USER="www-data"
WORKERS="5"

if [ ! -f $APP ] ; then
    echo "ERROR: No Silki app at $APP"
    exit 2
fi

silki_start () {

eg/ubuntu-init.d/silki  view on Meta::CPAN

    stop)
        silki_stop
    ;;

    restart|reload)
        silki_stop
        silki_start
    ;;

    status)
        status_of_proc -p $PIDFILE "starman $APP" "Silki Starman server" && exit 0 || exit $?
    ;;

    *)
        echo "Usage: /etc/init.d/silki {start|stop|restart|reload|status}"
        exit 1
    ;;
esac

exit 0

lib/Silki/Manual/Admin.pod  view on Meta::CPAN

F</usr/local/share/silki>, this would look like:

  AliasMatch ^/[^/]+/css(.+) /usr/local/share/silki/css$1
  AliasMatch ^/[^/]+/js(.+)  /usr/local/share/silki/js$1
  AliasMatch ^/images(.+)    /usr/local/share/silki/images$1

All other URIs should simply be passed to the Starman server. For testing, you
can start the server from the command line:

  sudo -u www-data \
      starman --listen 127.0.0.1:13000 \
              --workers 5 \
              --preload-app \
              /usr/local/bin/silki.psgi

You can adjust the value of C<--listen>, but it is recommended that you only
listen on the localhost interface. There's no reason to expose the app server
to the world at large. You can also adjust C<--workers> as needed.

You also need to enable support for the X-Sendfile header in your Apache
config file:



( run in 1.268 second using v1.01-cache-2.11-cpan-e93a5daba3e )