diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-26 08:53:36 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-26 08:53:36 +0100 |
commit | f3dd41db2dfa81f829aa5dcacde38ac87b030fc5 (patch) | |
tree | f2231714a3761ce3345d4b46b638d5ffeae4e571 /source | |
parent | Refactoring codes in templates. (diff) | |
download | newspipe-f3dd41db2dfa81f829aa5dcacde38ac87b030fc5.tar.gz newspipe-f3dd41db2dfa81f829aa5dcacde38ac87b030fc5.tar.bz2 newspipe-f3dd41db2dfa81f829aa5dcacde38ac87b030fc5.zip |
CherryPy port number and address are now defined in ./cfg/cherrypy.cfg.
Diffstat (limited to 'source')
-rw-r--r-- | source/cfg/cherrypy.cfg | 8 | ||||
-rwxr-xr-x | source/pyAggr3g470r.py | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/source/cfg/cherrypy.cfg b/source/cfg/cherrypy.cfg index 6e5374fa..8e721e7b 100644 --- a/source/cfg/cherrypy.cfg +++ b/source/cfg/cherrypy.cfg @@ -1,10 +1,12 @@ [global] -log.error_file = "var/error.log" -log.access_file = "var/access.log" +server.socket_host: "0.0.0.0" +server.socket_port: 12556 server.environment = "production" engine.autoreload_on = True engine.autoreload_frequency = 5 engine.timeout_monitor.on = False +log.error_file = "var/error.log" +log.access_file = "var/access.log" [/] tools.staticdir.root = os.getcwd() @@ -21,4 +23,4 @@ tools.staticdir.match = "(?i)^.+\.css$" [/images] tools.staticdir.on = True tools.staticdir.dir = "img" -tools.staticdir.match = "(?i)^.+\.png$" +tools.staticdir.match = "(?i)^.+\.png$"
\ No newline at end of file diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 3f74deba..00473189 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -1050,6 +1050,5 @@ if __name__ == '__main__': # Point of entry in execution mode root = pyAggr3g470r() root.favicon_ico = cherrypy.tools.staticfile.handler(filename=os.path.join(conf.path + "/img/favicon.png")) - cherrypy.config.update({ 'server.socket_port': 12556, 'server.socket_host': "0.0.0.0"}) cherrypy.config.update({'error_page.404': error_404}) cherrypy.quickstart(root, "/" ,config=conf.path + "/cfg/cherrypy.cfg") |