Punjab Documentation
Installation
Punjab has the following dependencies :
- Python
- Twisted - The latest version can be downloaded from http://twistedmatrix.com/
- pyopenssl - If you want ssl and tls to work.
Also see the following :
http://code.stanziq.com/cgit/punjab/punjab/tree/INSTALL.txt
Installing and Running Punjab
- Untar the current punjab-X.X.tar.gz file in a directory you would
like punjab to reside.
shell>tar vxzf punjab-X.X.tar.gz
- Run setup to install
shell>python setup.py install
- Configure punjab - using a tac file.
shell>edit punjab.tac # punjab tac file from twisted.web import server, resource, static from twisted.application import service, internet from punjab.httpb import Httpb, HttpbService root = static.File("./html") # a static html directory b = resource.IResource(HttpbService(1)) # 1 means turn on verbose mode. root.putChild('bosh', b) # url for BOSH site = server.Site(root) application = service.Application("punjab") internet.TCPServer(5280, site).setServiceParent(application)
- Run punjab
shell>twistd -y punjab.tac