-
Notifications
You must be signed in to change notification settings - Fork 5
Wikimedia Tool Labs
Finn Årup Nielsen edited this page Feb 15, 2017
·
8 revisions
- Create tool by following the instructions at https://wikitech.wikimedia.org/wiki/Help:Tool_Labs#Creating_a_new_Tool_account: https://tools.wmflabs.org/
- make directories (~/www/python), see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Python_application_stub
- Install a virtual environment there, see https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Python_application_stub
- source venv/bin/activate
- pip install -r cvrminer/requirements.txt
- cd src ; ln -s ../cvrminer/cvrminer/ .
- cd src ; cp ../cvrminer/app.py .
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