Talk:Parsoid/JS/Setup

Where to locate it?
it would be nice if there is a suggested location for parsoid, does it go with extensions, should it be percived as something in /usr/local or maybe /opt .... etc.


 * I second to to this --Harnas1977 (talk) 09:15, 4 March 2014 (UTC)


 * According to this change it should be located in "/usr/lib/parsoid" --&#91;&#91;kgh&#93;&#93; (talk) 19:16, 2 May 2014 (UTC)

Error: SSL Error: CERT_UNTRUSTED
npm ERR! Error: SSL Error: CERT_UNTRUSTED npm ERR! at ClientRequest. (/usr/lib/nodejs/npm/node_modules/request/main.js:440:26) npm ERR! at ClientRequest.g (events.js:185:14) npm ERR! at ClientRequest.EventEmitter.emit (events.js:88:17) npm ERR! at HTTPParser.parserOnIncomingClient (http.js:1445:7) npm ERR! at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23) npm ERR! at CleartextStream.socketOnData (http.js:1356:20) npm ERR! at CleartextStream.CryptoStream._push (tls.js:396:27) npm ERR! at SecurePair.cycle (tls.js:750:20) npm ERR! at EncryptedStream.CryptoStream.write (tls.js:131:13) npm ERR! at Socket.ondata (stream.js:38:26) npm ERR! [Error: SSL Error: CERT_UNTRUSTED] npm ERR! You may report this log at: npm ERR!  npm ERR! or email it to: npm ERR! 

npm ERR! System Linux 3.2.0-59-virtual npm ERR! command "nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/nemobis/parsoid npm ERR! node -v v0.8.2 npm ERR! npm -v 1.1.39 npm ERR! message SSL Error: CERT_UNTRUSTED npm http GET https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/diff npm http GET https://registry.npmjs.org/es6-shim npm http GET https://registry.npmjs.org/optimist npm http GET https://registry.npmjs.org/html5 npm http GET https://registry.npmjs.org/pegjs npm http GET https://registry.npmjs.org/alea npm http GET https://registry.npmjs.org/simplediff/0.1.1 npm http GET https://registry.npmjs.org/domino npm http GET https://registry.npmjs.org/express npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/nemobis/parsoid/npm-debug.log npm ERR! not ok code 0 Sob. --Nemo 08:22, 17 March 2014 (UTC)

dumpGrepper.js
Of course it depends on dumpReader.js which says "npm install libxmljs", but that didn't work for me. --Nemo 11:02, 17 March 2014 (UTC)

Run the Server
On my debian-wheezy the start-command is not "node api/server.js" it is "nodejs api/server.js". Can anyone confirm this?
 * Not so for me my command is node, i think it depends on rather you build from source or install from backports.

Can we point parsoid to use node.js on a remote server?
We're running a wiki (ver 1.22.3) and would like to install parsoid for the visual editor. It runs on shared hosting that doesn't allow installing node.js. Can we point parsoid to use node.js on a remote server, eg with heroku.com's free service? If so--how would we need to tweak parsoid? --Tickle me (talk) 19:44, 28 April 2014 (UTC)

auto startup sysvinit?
Debian has sysvinit instead of startup or systemd does anyone know how it might be setup with that?
 * http://askubuntu.com/questions/99232/how-to-make-a-jar-file-run-on-startup-and-when-you-log-out has some good information on sysvinit.
 * Well, two people wondering about the same thing at the same time. See me post just below. Hmm ... Probably we should work an a script and post it here. --&#91;&#91;kgh&#93;&#93; (talk) 19:17, 2 May 2014 (UTC)

Starting the Parsoid service automatically with ???
The docu only caters for upstart. So one should not dare to use sysvinit? Well one cannot since no script is provided. I am pretty lost here since I rely on Debian and not Ubuntu. :( --&#91;&#91;kgh&#93;&#93; (talk) 19:11, 2 May 2014 (UTC)


 * Hmm, perhaps there is something here to help the cause... --&#91;&#91;kgh&#93;&#93; (talk) 19:35, 2 May 2014 (UTC)


 * Oh my gosh, setting up Parsoid is being discussed here. Let's call it a day. What a waste. --&#91;&#91;kgh&#93;&#93; (talk) 19:48, 2 May 2014 (UTC)