Skip to content

Instantly share code, notes, and snippets.

@x746e
Created July 17, 2012 13:30
Show Gist options
  • Save x746e/3129406 to your computer and use it in GitHub Desktop.
Save x746e/3129406 to your computer and use it in GitHub Desktop.
web2py runserver
#!/bin/sh
WEB2PY_DIR=$HOME/work/web2py.dev
VENV=$HOME/work/venv
CODEDIR=$HOME/work/eas-hgsvn-full-trunk
EMEDIATE_GLOBAL_CONF=$HOME/work/devserver_global.conf
. $VENV/bin/activate
export EMEDIATE_GLOBAL_CONF
export PYTHONPATH=$CODEDIR/common_libs/pythonlibs:$CODEDIR/booking/gui/lib
export DONT_POLLUTE_SYS_PATH=true
# setup app symlinks
unlink $WEB2PY_DIR/applications/api
unlink $WEB2PY_DIR/applications/wooking
ln -s $CODEDIR/booking/gui/applications/api $WEB2PY_DIR/applications/api
ln -s $CODEDIR/booking/gui/applications/booking $WEB2PY_DIR/applications/wooking
# run that shit
cd $WEB2PY_DIR
python web2py.py --nogui --password='pass'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment