Open main menu

Changes

740 bytes added ,  15:49, 9 May 2014
more enhancement
=== WebFaction ===
To install the Visual Editor extension in a Webfaction account, you need to first have node installed and working. You can do this by using the [http://docs.webfaction.com/software/custom.html installer in your webfaction panel] and associating a path with the app for a domain. I chose to install 'node' (which is now it's own one-click install) and also installing another 'app' to open up a port to use with the service. I had to export the PORT, but this is no longer necessary if you configure it in localsettings.js. Depending on the resource constraints of your hosting package, you may need to limit the number of workers spawned by the Parsoid service. It calculates a number based on the number of processors. For a shared hosting account, this is guaranteed to break, so specify the <code>--num-workers</code> option.
 
Follow the installation instructions, and remember to edit both LocalSettings.php and localsettings.js
To install the visual editor extension in a webfaction account, you need to first have node installed and working. You can do this by using the [http://docs.webfaction.com/software/custom.html installer in your webfaction panel] and associating a path with the app for a domain.
You'll want to set/update your $NODE_PATH and $PATH environment variables to locate the installed node modules, and to find the node and npm binaries
Once node (and npm) is available, you of course need to get the parsoid and visual_editor extensions. A quick <code>npm install</code> in the parsoid directory sets up all the node machinery.
To have it run continuously, you might want to use the 'forever' module.
<source lang="bash">
npm install forever
cd ~/webapps/wiki/extensions/Parsoid/
forever node api/server.js --num-workers=2 &
</source>
4,558

edits