Created
July 17, 2012 13:30
-
-
Save x746e/3129406 to your computer and use it in GitHub Desktop.
web2py runserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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