VisualEditor/Cloud VPS
Appearance
Guide for managing test instance at http://visualeditor-prototype.wmflabs.org/.
Installation steps
[edit]- Create a MediaWiki-Vagrant instance in Cloud VPS
- Enable VE:
cd /srv/mediawiki-vagrant
mwvagrant roles enable visualeditor
and optionally some more roles:mobilefrontend
cite
citoid
textextracts
pageimages
mwvagrant provision
- Make modifications for RESTBase & Parsoid:
mwvagrant ssh
- Replace
dev.wiki.local.wmftest.net
withvisualeditor-prototype.wmflabs.org
in the following files:/etc/apache2/site-confs/devwiki/50-RESTBase-Proxy.conf
/etc/parsoid.localsettings.vagrant.js
/vagrant/srv/restbase/config.vagrant.yaml
/vagrant/settings.d/wikis/wiki/settings.d/puppet-managed/00-RESTBase-VRS.php
/vagrant/settings.d/wikis/wiki/settings.d/puppet-managed/05-RESTBase-VisualEditor.php
/vagrant/settings.d/wikis/wiki/settings.d/puppet-managed/10-Citoid.php
- If you get a "No wiki found" error, you just need to restart apache (
sudo service apache2 restart
from within vagrant).
NPM problems
[edit]If npm i
crashes with "killed", then you can run it from the host:
sudo su mwvagrant
bash
- Install nvm
nvm install 6.16.0
(or whatever the version is inside vagrant;node -v
)npm i
Updating code
[edit]Just use mwvagrant git-update
. If you enable a new vagrant role and need to provision vagrant, you will need to repeat step 3 from the installation process.
If you reload vagrant, you may need to repeat step 3.3.
Checking out a patch
[edit]SSH in to visualeditor-prototype.eqiad.wmflabs
, mwvagrant ssh
, then use git-review
as you would on your local machine.
Differences from live
[edit]Some extensions are not installed/configured yet:
- Math
- BetaFeatures
- Kartographer
- Score
- wikihiero
- ...