Reading/Web/Setting up a Proton staging environment

< Reading‎ | Web
Jump to navigation Jump to search

Setting up a staging environment for the Proton project is markedly similar to setting up a staging environment for MobileFrontend.

Differences from setting up MobileFrontend staging environment[edit]

Set up the instance[edit]

ssh to the instance and run the following commands:

sudo puppet agent -tv
cd /srv/mediawiki-vagrant
vagrant roles enable offline
# For testing printing RTL language pages to PDF.
vagrant roles enable interwiki
# The proverbial kitchen sink.
vagrant roles enable cite parserfunctions scribunto
vagrant up --provision

Fetching page content from the Wikipedias[edit]

The PDF renderer can be configured for fetch page content from a Wikipedia via RESTBase by adding the following to /vagrant/settings.d/10-VirtualRestConfig.php:

1 <?php
3 $wgVirtualRestConfig['modules']['restbase'] = [
4   'url' => '',
5   'domain' => '',
6   'forwardCookies' => false,
7   'fixedUrl' => true,
8 ] + $wgVirtualRestConfig['modules']['restbase'];