From 2e6d4f5a0015c17dc1da378e213d12a322fe6863 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Sun, 27 May 2007 22:09:06 +0000 Subject: [PATCH] Moving the port configuration to the settings.py file and out of the database. --- server.py | 2 +- settings.py.dist | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 72e87a4bd9..90cd0d59d9 100755 --- a/server.py +++ b/server.py @@ -38,7 +38,7 @@ class EvenniaService(service.Service): print '-'*50 # Load command aliases into memory for easy/quick access. self.load_cmd_aliases() - self.port = gameconf.get_configvalue('site_port') + self.port = settings.GAMEPORT if gameconf.get_configvalue('game_firstrun') == '1': print ' Game started for the first time, setting defaults.' diff --git a/settings.py.dist b/settings.py.dist index e3f6b0df85..9f631e0c27 100755 --- a/settings.py.dist +++ b/settings.py.dist @@ -1,5 +1,10 @@ -# Django settings for evennia project. +# The port for the game to run on. +GAMEPORT = 4000 +# The name of the server log file. +LOGFILE = 'logs/evennia.log' + +# Django settings for evennia project. DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -80,5 +85,3 @@ INSTALLED_APPS = ( 'apps.genperms', ) -LOGFILE = 'logs/evennia.log' -GAMEPORT = 4000