Converted to Twisted from asyncore. Not positive if this is just my local machine, but it seems like this backend is a bit faster.

This commit is contained in:
Greg Taylor 2007-05-21 20:52:05 +00:00
parent 82f46a2b69
commit 97cf1213e6
8 changed files with 113 additions and 145 deletions

View file

@ -1,25 +1,13 @@
#!/bin/bash
export DJANGO_SETTINGS_MODULE="settings"
## Uncomment whichever python binary you'd like to use to run the game.
## Evennia is developed on 2.5 but should be compatible with 2.4.
# PYTHON_BIN="python"
# PYTHON_BIN="python2.4"
PYTHON_BIN="python2.5"
## The name of your logfile.
LOGNAME="logs/evennia.log"
## Where to put the last log file from the game's last running
## on next startup.
LOGNAME_OLD="logs/evennia.log.old"
mv $LOGNAME $LOGNAME_OLD
## There are several different ways you can run the server, read the
## description for each and uncomment the desired mode.
## Generate profile data for use with cProfile.
# $PYTHON_BIN -m cProfile -o profiler.log -s time server.py
## TODO: Make this accept a command line argument to use interactive
## mode instead of having to uncomment crap.
## Interactive mode. Good for development and debugging.
#$PYTHON_BIN server.py
#twistd -noy twistd -ny server.py
## Stand-alone mode. Good for running games.
nohup $PYTHON_BIN server.py > $LOGNAME &
twistd -ny server.py