[three]Bean
Using fabric to manage moksha development
Apr 13, 2011 | categories: python, fabric, moksha View CommentsNow I know that fabric is really meant for managing deployment, but to try and teach myself what it can do, I rewrote some monster bash-scripts that manage the development environment for Luke Macken's awesome project moksha.
I came up with:
- A master fabfile to manage moksha-proper development.
- A template fabfile that gets placed in the base directory of new apps created from moksha's paster templates.
#!/bin/bash rm -rf threebean mkdir -p threebean pushd threebean git clone git://github.com/ralphbean/moksha.git pushd moksha fab -H localhost bootstrap popd # If you don't already have it sourced in your .bashrc! source /usr/bin/virtualenvwrapper.sh workon moksha paster moksha -l -c -u -C -P << EOF testapp moksha.test EOF deactivate pushd testapp fab -H localhost install popd pushd moksha fab -H localhost develop fab -H localhost start popd popd # You should see the testapp widget show up under the 'widgets' menu. firefox http://localhost:8080/ &