~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Mattias Eriksson
  • Date: 2008-03-06 07:30:37 UTC
  • mto: (149.1.1 socket_host)
  • mto: This revision was merged to the branch mainline in revision 150.
  • Revision ID: snaggen@acc.umu.se-20080306073037-cd3fxfs1t9kkrt1q
Make it possible to override the interface loggerhead listens to. This is done by setting server.socket_host in the configuration file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    
87
87
    turbogears.update_config(configfile="dev.cfg", modulename="loggerhead.config")
88
88
    
89
 
    potential_overrides = [ ('server.socket_port', int), ('server.webpath', str), ('server.thread_pool', int) ]
 
89
    potential_overrides = [ ('server.socket_port', int), ('server.webpath', str), ('server.thread_pool', int), ('server.socket_host' ,str) ]
90
90
    for key, keytype in potential_overrides:
91
91
        value = config.get(key, None)
92
92
        if value is not None: