|
|
|
# Vagrant MediaWiki
|
|
|
|
|
|
|
|
A quick way to set up a virtual machine with MediaWiki installed. Makes it easy to develop and test MediaWiki extensions.
|
|
|
|
|
|
|
|
## installing Vagrant-Mediawiki
|
|
|
|
|
|
|
|
* documentation see https://www.mediawiki.org/wiki/MediaWiki-Vagrant
|
|
|
|
* `git clone --recursive https://gerrit.wikimedia.org/r/mediawiki/vagrant`
|
|
|
|
* `cd vagrant`
|
|
|
|
* `./setup.sh`
|
|
|
|
|
|
|
|
## Fixing the VisualEditor problem
|
|
|
|
```
|
|
|
|
vagrant roles enable parsoid
|
|
|
|
vagrant ssh
|
|
|
|
cd /vagrant/srv/restbase/
|
|
|
|
rm -rf node_modules/
|
|
|
|
npm install
|
|
|
|
npm init --yes
|
|
|
|
npm install restbase-mod-table-sqlite --no-bin-links
|
|
|
|
npm install npmlog
|
|
|
|
tail -f /vagrant/logs/restbase.log # check if no other module is missing
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# Useful Documentation
|
|
# Useful Documentation
|
|
* class API reference: https://doc.wikimedia.org/mediawiki-core/master/php/index.html
|
|
* class API reference: https://doc.wikimedia.org/mediawiki-core/master/php/index.html
|
|
|
|
|
... | @@ -201,31 +226,6 @@ Details see https://www.mediawiki.org/wiki/Manual:Database_access |
... | @@ -201,31 +226,6 @@ Details see https://www.mediawiki.org/wiki/Manual:Database_access |
|
|
|
|
|
|
|
|
|
|
|
|
|
# Vagrant MediaWiki
|
|
|
|
|
|
|
|
## installing Vagrant-Mediawiki
|
|
|
|
|
|
|
|
A quick way to set up a virtual machine with MediaWiki installed. Makes it easy to test MediaWiki extensions.
|
|
|
|
|
|
|
|
* documentation see https://www.mediawiki.org/wiki/MediaWiki-Vagrant
|
|
|
|
* `git clone --recursive https://gerrit.wikimedia.org/r/mediawiki/vagrant`
|
|
|
|
* `cd vagrant`
|
|
|
|
* `vagrant up`
|
|
|
|
|
|
|
|
## Fixing the VisualEditor problem
|
|
|
|
```
|
|
|
|
vagrant roles enable parsoid
|
|
|
|
vagrant ssh
|
|
|
|
cd /vagrant/srv/restbase/
|
|
|
|
rm -rf node_modules/
|
|
|
|
npm install
|
|
|
|
npm init --yes
|
|
|
|
npm install restbase-mod-table-sqlite --no-bin-links
|
|
|
|
npm install npmlog
|
|
|
|
tail -f /vagrant/logs/restbase.log # check if no other module is missing
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# some MediaWiki hooks
|
|
# some MediaWiki hooks
|
|
|
|
|
|
## Alter the source before save
|
|
## Alter the source before save
|
... | | ... | |