mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Make Evennia start correctly on the latest version of Twisted. There is a logging snafu that exists with the latest Twisted, and it was only dumb luck that the server started on previous versions of the framework. The ticket detailing this problem is at: http://twistedmatrix.com/trac/ticket/3289
Let me know if this breaks your setup!
This commit is contained in:
parent
38f8225a37
commit
87fb121427
4 changed files with 3 additions and 7 deletions
|
|
@ -22,7 +22,6 @@ import initial_setup
|
|||
class EvenniaService(service.Service):
|
||||
|
||||
def __init__(self, filename="blah"):
|
||||
log.startLogging(open(settings.LOGFILE, 'w'))
|
||||
self.cmd_alias_list = {}
|
||||
self.game_running = True
|
||||
sys.path.append('.')
|
||||
|
|
|
|||
|
|
@ -21,9 +21,6 @@ MANAGERS = ADMINS
|
|||
# The path that contains this settings.py file (no trailing slash).
|
||||
BASE_PATH = '/home/evennia/evennia'
|
||||
|
||||
# The name of the server log file.
|
||||
LOGFILE = '%s/logs/evennia.log' % (BASE_PATH)
|
||||
|
||||
# Absolute path to the directory that holds media (no trailing slash).
|
||||
# Example: "/home/media/media.lawrence.com"
|
||||
MEDIA_ROOT = '%s/media' % (BASE_PATH)
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ set PYTHONPATH=.
|
|||
echo Starting Evennia...
|
||||
|
||||
rem We're only going to run in interactive mode until we've had more time to make sure things work as expected on Windows.
|
||||
twistd -noy server.py
|
||||
twistd -oy --logfile=- --python=server.py
|
||||
|
|
@ -11,6 +11,6 @@ mv -f $BASE_PATH/logs/evennia.log $BASE_PATH/logs/evennia.logs.old
|
|||
## mode instead of having to uncomment crap.
|
||||
|
||||
## Interactive mode. Good for development and debugging.
|
||||
#twistd -noy twistd -ny server.py
|
||||
#twistd --logfile=- --python=server.py
|
||||
## Stand-alone mode. Good for running games.
|
||||
twistd -y server.py
|
||||
twistd --logfile=logs/evennia.log --python=server.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue