mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Moving the port configuration to the settings.py file and out of the database.
This commit is contained in:
parent
7d869dff18
commit
2e6d4f5a00
2 changed files with 7 additions and 4 deletions
|
|
@ -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.'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue