Setting up ethercalc (II)
following previous post.
Server environment and configuration
- Debian Wheezy amd64
- Using official repository as much as possible
- redis-server 2:2.4.14-1
- Run behind apache reverse proxy, using “/ethercalc/” as its path from browser
node.js
cd /usr/local/src wget http://nodejs.org/dist/v0.10.10/node-v0.10.10.tar.gz tar -zxvf node-v0.10.10.tar.gz cd node-v0.10.10 ./configure make make install DESTDIR=/usr/local/node.js dpkg -i node_0.10.10-1_amd64.deb
Note, package name ‘node’ exists already in Debian official package..
ethercalc
cd /server npm i ethercalc
Use rc script for starting ethercalc.
Also use --basepath option to run ethercalc at ‘/ethercalc/’ path as /server/node_modules/ethercalc/app.js --basepath /ethercalc/.
update-rc.d defaults ethercalc invoke-rc.d ethercalc start
Apache configuration
Added reverse proxy.
ProxyVia On ProxyRequests Off ProxyPass /ethercalc/ http://XXX:8000/ ProxyPassReverse /ethercalc/ http://XXX:8000/ ProxyPreserveHost on
misc notes
installed ethercalc dependencies and versions
ethercalc@0.20130622.1 /server/node_modules/ethercalc ├── cors@1.0.1 ├─┬ LiveScript@1.1.1 │ └── prelude-ls@1.0.0 ├─┬ optimist@0.5.2 │ └── wordwrap@0.0.2 ├── redis@0.8.2 ├── uuid-pure@1.0.10 ├── webworker-threads@0.4.7 └─┬ zappajs@0.4.22 ├─┬ coffee-css@0.0.5 │ ├── coffee-script@1.6.3 │ └── underscore@1.4.4 ├─┬ coffeecup@0.3.20 │ ├── coffee-script@1.6.3 │ ├── optparse@1.0.3 │ ├─┬ stylus@0.27.2 │ │ ├── cssom@0.2.5 │ │ ├── debug@0.7.2 │ │ └── mkdirp@0.3.5 │ └── uglify-js@1.2.6 ├─┬ express@3.2.6 │ ├── buffer-crc32@0.2.1 │ ├── commander@0.6.1 │ ├─┬ connect@2.7.11 │ │ ├── bytes@0.2.0 │ │ ├── cookie@0.0.5 │ │ ├── formidable@1.0.14 │ │ ├── pause@0.0.1 │ │ ├── qs@0.6.5 │ │ └─┬ send@0.1.1 │ │ └── mime@1.2.9 │ ├── cookie@0.1.0 │ ├── cookie-signature@1.0.1 │ ├── debug@0.7.2 │ ├── fresh@0.1.0 │ ├── mkdirp@0.3.4 │ ├── range-parser@0.0.4 │ └─┬ send@0.1.0 │ └── mime@1.2.6 ├── methods@0.0.1 ├── node-uuid@1.4.0 ├─┬ socket.io@0.9.16 │ ├── base64id@0.1.0 │ ├── policyfile@0.0.4 │ ├── redis@0.7.3 │ └─┬ socket.io-client@0.9.16 │ ├─┬ active-x-obfuscator@0.0.1 │ │ └── zeparser@0.0.5 │ ├── uglify-js@1.2.5 │ ├─┬ ws@0.4.25 │ │ ├── commander@0.6.1 │ │ ├── options@0.0.5 │ │ └── tinycolor@0.0.1 │ └── xmlhttprequest@1.4.2 └─┬ uglify-js@2.3.6 ├── async@0.2.9 ├─┬ optimist@0.3.7 │ └── wordwrap@0.0.2 └─┬ source-map@0.1.23 └── amdefine@0.0.5
27. February, 2014 at 15:37
Hello,
Can you modify the script to output the log to a file. With the above rc script, there’s no log file.
Thanks!