forked from xmppo/node-xmpp-bosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.TXT
62 lines (41 loc) · 1.76 KB
/
INSTALL.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
+---------------------------+
| Installing node-xmpp-bosh |
+---------------------------+
NOTE: Debian and Debian-based system users may use the following
detailed step-by-step instructions on how-to to install node-xmpp-bosh:
http://code.google.com/p/node-xmpp-bosh/wiki/DebianHowTo
1. Install node.js http://nodejs.org/
(possibly at /opt/node-VERSION so that you can have multiple versions)
node-xmpp-bosh has been tested with node v0.4.x
2. Set the node executable in the path (if not already set):
$ export PATH=/opt/PATH-TO-NODE/bin/:$PATH
(also add to .bashrc)
3. Set the NODE_PATH variable:
$ export NODE_PATH=/opt/PATH-TO-NODE/lib/node_modules/:$NODE_PATH
(also add to .bashrc)
4. Test node:
$ node
5. Install npm: https://github.com/isaacs/npm
curl http://npmjs.org/install.sh | sh
6. If you are a developer, goto step [10]
7. Get the proxy (this should get all deps.) and run it.
Go to the directory where you want to install node-xmpp-bosh (for
a local install and move to step-9) or follow step-8
$ cd ~/
$ npm install node-xmpp-bosh
$ node node_modules/node-xmpp-bosh/run-server.js
8. Install globally and run
$ npm install node-xmpp-bosh -g
$ bosh-server
9. Report any bugs at https://github.com/dhruvbird/node-xmpp-bosh/issues
* If you are a developer and want a bleeding edge version of the server,
pull it from GIT and link it to your node module using npm.
10. $ cd <your project directory>
11. $ git clone https://github.com/dhruvbird/node-xmpp-bosh
12. $ cd node-xmpp-bosh
13. Link the GIT checked-out directory of the proxy to the main one (so
that you can pull and needn't wait for a release)
$ npm link
14. Set the executable flag on run-server.js:
$ chmod +x run-server.js
15. Goto step [9]