Skip to content

Commit 944e667

Browse files
author
debuger
committed
Add instructions to deploy to production Linux
1 parent d5b4ccf commit 944e667

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Production.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#How to deploy to production, on Linux
2+
3+
Tested on Ubuntu 12.04
4+
5+
##Pre-requisits:
6+
7+
* [node js 0.8 or later](http://nodejs.org/)
8+
* [npm 1.2.x](https://npmjs.org)
9+
* [rrdtool](http://oss.oetiker.ch/rrdtool/)
10+
* librrd-dev - for node_rrd, to build node bindings (on Ubuntu, apt-get install librrd-dev)
11+
* access to your collectd data directory
12+
13+
##Get the files:
14+
$wget https://github.com/dzimine/collectd3/archive/master.zip
15+
$unzip master.zip
16+
$mv collectd3-master collectd3
17+
$cd collectd3
18+
$npm install --production
19+
20+
Must be ok. If there are error, it will say 'not ok' on the last line.
21+
22+
One known problem may happen on npm install, fix pending…
23+
24+
Temp fix: build node_rrd independently and copy it over under collectd3/node/node_modules
25+
26+
$git clone https://github.com/dzimine/node_rrd.git
27+
$cd node_rrd
28+
$npm install
29+
$cd ..
30+
$cp -r node_rrd collectd3/node/node_modules/rrd
31+
32+
33+
##Configure:
34+
35+
Edit collectd3/node/config/default.yml
36+
37+
* port: 9000 # web server port
38+
* data-directory: sampledata # a path to collectd data root directory
39+
40+
##Run:
41+
42+
from collected directory -
43+
44+
$cd node
45+
$node server.js

0 commit comments

Comments
 (0)