I've created a little bash script to launch melkjug. It's helpful when you
have a few different configurations you like to play with when developing.
I have the script in the root of my virtualenv and keep my configurations in
<virtualenv>/etc
You may need to change paths if this is different for you.

Example usage (etc/dev.ini is the configuration you wish to launch):
./launch dev

#!/bin/bash

config=./etc/${1}.ini

if [ -r $config ]
then
    source ./bin/activate
    paster serve $config
    exit $?
fi

echo "Usage: 'launch <config>' where config.ini exists in ./etc"
exit 1

Reply via email to