|
From: <rep...@mo...> - 2004-12-29 00:42:14
|
Author: mod-pubsub-developer Date: Tue Dec 28 08:17:03 2004 New Revision: 21 Added: INSTALL.txt Log: Adding new install instructions Added: INSTALL.txt ============================================================================== --- (empty file) +++ INSTALL.txt Tue Dec 28 08:17:03 2004 @@ -0,0 +1,33 @@ +1) Install Twisted by any means necessary. + +2) Untar the Repubsub distribution. + + tar -zxvf repubsub_0.2.6.tar.gz + +3) Go into repubsub/kn_apps/kn_lib, and edit prologue.js to reflect your +servername and the port you want to run on. The default is: + + http://localhost:8080 + +but this is not likely to be useful except for short tests. + +If you are running an Apache server and a Mod-pubsub server on two different machines within the same domain (e.g. www.example.com and mps.example.com), you will also need to add a line like this for JavaScript security: + + document.domain = "http://example.com"; + +4) Go into repubsub/twisted.pubsub, and do something like this: + + sudo python2.3 pubsub.py 8080 .. & + +5) Hit the test URL in a browser: + + http://localhost:8080/tests/server_test.html + +You should see two embedded iframes, one that says 200 Watching Topic and one +that says 200 OK. + +6) If you run an Apache server and a Mod-pubsub server in tandem, you probably want to do this in Apache httpd.conf: + + Redirect permanent /kn http://localhost:8080/kn + +This will allow you to address the pubsub server at /kn in your apps, instead of worrying which hostname and port it might be on. \ No newline at end of file |