hah, I cobbled together my own (scrappier) version of the below weeks ago,
but this is definitely nicer. thanks randall :0)

On Thu, Jul 24, 2008 at 4:24 PM, Randall Leeds <[EMAIL PROTECTED]> wrote:

> 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