[pypy-svn] r40471 - in pypy/dist/pypy/tool/build: . bin
guido at codespeak.net
guido at codespeak.net
Wed Mar 14 12:04:22 CET 2007
Author: guido
Date: Wed Mar 14 12:04:19 2007
New Revision: 40471
Added:
pypy/dist/pypy/tool/build/bin/gentoo_init.d_metaserver
- copied unchanged from r40469, pypy/dist/pypy/tool/build/bin/gentoo_init.d
pypy/dist/pypy/tool/build/bin/gentoo_init.d_webserver
- copied, changed from r40469, pypy/dist/pypy/tool/build/bin/gentoo_init.d
pypy/dist/pypy/tool/build/bin/webserver (contents, props changed)
Removed:
pypy/dist/pypy/tool/build/bin/gentoo_init.d
Modified:
pypy/dist/pypy/tool/build/config.py
Log:
Added shell scripts and gentoo init.d scripts for the web server. Also added config
vars for server ip and port.
Added: pypy/dist/pypy/tool/build/bin/webserver
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/tool/build/bin/webserver Wed Mar 14 12:04:19 2007
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import autopath
+import path
+from pypy.tool.build import config
+
+if __name__ == '__main__':
+ from py.execnet import SshGateway, PopenGateway
+ from pypy.tool.build.web.server import run_server
+ from pypy.tool.build.web.app import AppHandler
+ print 'starting server at port (%r, %r)' % (config.webserver, config.webport)
+ run_server((config.webserver, config.webport), AppHandler)
+
Modified: pypy/dist/pypy/tool/build/config.py
==============================================================================
--- pypy/dist/pypy/tool/build/config.py (original)
+++ pypy/dist/pypy/tool/build/config.py Wed Mar 14 12:04:19 2007
@@ -4,8 +4,10 @@
# general settings, used by both server and client
server = 'codespeak.net'
+webserver = ''
port = 12321
testport = 32123
+webport = 8080
path = [str(packageparent)]
# configuration of options for client and startcompile
More information about the Pypy-commit
mailing list