mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 23:36:30 +01:00
16 lines
649 B
Bash
Executable file
16 lines
649 B
Bash
Executable file
#!/bin/bash
|
|
export DJANGO_SETTINGS_MODULE="settings"
|
|
|
|
BASE_PATH=`python -c "import settings; print settings.BASE_PATH"`
|
|
mv -f $BASE_PATH/logs/evennia.log $BASE_PATH/logs/evennia.logs.old
|
|
|
|
## There are several different ways you can run the server, read the
|
|
## description for each and uncomment the desired mode.
|
|
|
|
## 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.
|
|
twistd -n --logfile=logs/evennia.log --python=src/server.py
|
|
## Stand-alone mode. Good for running games.
|
|
#twistd --logfile=logs/evennia.log --python=src/server.py
|