VisualEditor/Installation on a shared host


 * 1) VisualEditor requires a Parsoid service, (using the Parsoid/Developer Setup here). Parsoid requires also Node.js running in the background at all times. Most shared-hosting companies don't provide this. If you cannot move your wiki to a dedicated hosting solution such as a VPS, then a workaround is to install Parsoid on a cloud platform which supports Node.js, such as Heroku.com. Be aware that this is not an official hack.


 * 1) Install Extension:VisualEditor on your wiki as per usual. (you can download it from here).
 * 2) Sign up with Heroku.com.
 * 3) In the a language choice section select node.js.
 * 4) Install the Heroku Command Line Interface as well as any dependencies (i.e node.js and npm.).
 * 5) The first thing you should do when you installed Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:                                                                                                                                                                                    Your name:   and your email adress:
 * 6) After successful installation, open "Start Command Prompt with Ruby" (you have just installed it) and create new folder. You can do it manual by typing this command:
 * 7) Next, change path to your created folder (folder1). You can do it by typing this command:
 * 8) Download Parsoid using this command:
 * 9) After successfully downloading, go to Parsoid location on your disk (for example here "C:\folder1\parsoid").
 * 10) In Parsoid folder change the file .gitignore (this file is located between "tools" folder and ".gitreview" file in Parsoid root folder). Here you need to remove the line config.yaml (11 line).
 * 11) Now you also need to change the file config.example.yaml. Open it and change uri (line 37) The "uri" is the URL to your API (normally this is in the root-folder and called api.php). Change this option according your wiki (for example http://wiki.mysite.com/api.php or http://mysite.com/w/api.php or something like that. For mediawiki.org is it https://www.mediawiki.org/w/api.php):
 * 12) Once you applied the changes save the file as config.yaml
 * 13) Now change to another folder (folder2) in your console. You can do it manual by typing this command: To create it: and to change the path:
 * 14) Now, login to your heroku account by typing: Then sign in to your heroku account using your email adress and passwod.
 * 15) To create a new app type in console:
 * 16) Then open your app on Heroku.
 * 17) In "Settings" tab edit the "Config Variables" and add the following parameter:
 * 18) Now copy your files from the parsoid folder in folder 1 to folder2. Note that you have to copy the files inside the parsoid folder into folder2 and not the parsoid folder itself.
 * 19) Then add all files to your git repository:
 * 20) You'll see git editor. You can get out of it by typing the command :q. After this u show message "Aborting commit due to empty commit message". Don't worry this is normal.
 * 21) Next, add your Heroku app as a Git remote:
 * 22) Now you should get a positive response.
 * 23) Before you run your app set Heroku to run it with one dyno:
 * 24) To test your installation open your app: URL is http://APPNAME.herokuapp.com
 * 25) You should see a HTML-Page titled "Welcome to the Parsoid web service". which shows that Parsoid is working.
 * 26) Now it's time to change your LocalSettings.php:

Example Parsoid in Heroku
http://parsoidonheroku.herokuapp.com

External resources
Getting Started with Node.js over Heroku Manual