Skip to content

Wikimedia Tool Labs

Finn Årup Nielsen edited this page Feb 15, 2017 · 8 revisions

Installation

  1. Create tool by following the instructions at https://wikitech.wikimedia.org/wiki/Help:Tool_Labs#Creating_a_new_Tool_account: https://tools.wmflabs.org/
  2. make directories (~/www/python), see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Python_application_stub
  3. Install a virtual environment there, see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Python_application_stub
  4. source venv/bin/activate
  5. pip install -r cvrminer/requirements.txt
  6. cd src ; ln -s ../cvrminer/cvrminer/ .
  7. cd src ; cp ../cvrminer/app.py .

Updates

become cvrminer
source ~/www/python/venv/bin/activate
cd ~/www/python/cvrminer ; git pull
# If new requirements
# pip install -r ~/www/python/cvrminer/requirements.txt
webservice2 uwsgi-python restart
tail -f ~/uwsgi.log  # look at web log
Clone this wiki locally