New startup.sh file with configurable start modes. Eventually we'll do this via command line arguments, but for now it'll do.
This commit is contained in:
parent
3292405fcb
commit
b63f69eed0
1 changed files with 23 additions and 2 deletions
25
startup.sh
25
startup.sh
|
|
@ -1,4 +1,25 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export DJANGO_SETTINGS_MODULE="settings"
|
export DJANGO_SETTINGS_MODULE="settings"
|
||||||
#python2.5 -m cProfile -o profiler.log -s time server.py
|
|
||||||
python2.5 server.py
|
## 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="evennia.log"
|
||||||
|
## Where to put the last log file from the game's last running
|
||||||
|
## on next startup.
|
||||||
|
LOGNAME_OLD="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
|
||||||
|
## Interactive mode. Good for development and debugging.
|
||||||
|
# $PYTHON_BIN server.py
|
||||||
|
## Stand-alone mode. Good for running games.
|
||||||
|
nohup $PYTHON_BIN server.py > $LOGNAME &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue