#!/bin/bash
. /opt/local/perlbrew/etc/bashrc
eval $( perl -Mlocal::lib )

export MOJO_HOME=$(pwd)
export MOJO_LOG_SHORT=1 # Remove timestamps from Mojo, added by log svc
export MOJO_LOG_LEVEL=info
export BEAM_MINION='mysql+dsn+dbi:mysql:mysql_read_default_file=~/.cpanstats.cnf;mysql_read_default_group=application'
export MOJO_PUBSUB_EXPERIMENTAL=1 # Shut up
export MOJO_MAX_MESSAGE_SIZE=33554432 # approx 32M

exec cpantesters-legacy-metabase prefork -l http://*:8250 -G 1500 -H 300 -i 240  2>&1
