Moving the game port selection to settings.py for simplicity and security.

This commit is contained in:
Greg Taylor 2007-05-27 22:06:12 +00:00
parent 92165ade01
commit 7d869dff18
3 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,6 @@
INSERT INTO config_configvalue VALUES(1,'site_name','Evennia Test Site');
INSERT INTO config_configvalue VALUES(2,'site_port','4000');
INSERT INTO config_configvalue VALUES(3,'player_dbnum_start','2');
INSERT INTO config_configvalue VALUES(4,'money_name_plural','Credits');
INSERT INTO config_configvalue VALUES(5,'money_name_singular','Credit');
INSERT INTO config_configvalue VALUES(6,'game_firstrun','1');
INSERT INTO config_configvalue VALUES(7,'idle_timeout','1800');
INSERT INTO config_configvalue VALUES(2,'player_dbnum_start','2');
INSERT INTO config_configvalue VALUES(3,'money_name_plural','Credits');
INSERT INTO config_configvalue VALUES(4,'money_name_singular','Credit');
INSERT INTO config_configvalue VALUES(5,'game_firstrun','1');
INSERT INTO config_configvalue VALUES(6,'idle_timeout','1800');

View file

@ -123,4 +123,4 @@ mud_service = EvenniaService('Evennia Server')
# Sheet sheet, fire ze missiles!
serviceCollection = service.IServiceCollection(application)
internet.TCPServer(4000, mud_service.getEvenniaServiceFactory()).setServiceParent(serviceCollection)
internet.TCPServer(settings.GAMEPORT, mud_service.getEvenniaServiceFactory()).setServiceParent(serviceCollection)

View file

@ -81,3 +81,4 @@ INSTALLED_APPS = (
)
LOGFILE = 'logs/evennia.log'
GAMEPORT = 4000