No description, website, or topics provided.
HTML JavaScript Python CSS Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit de6a950 Jun 22, 2018


pip install BeautifulSoup

pip install nltk

pip install pysolr

###On CentOS, for haystack yum install libxslt-devel pip install lxml --update

schema.xml should copied into solr conf

#in python import nltk'stopwords')'wordnet')

git clone set british library data file location in "views"


On CentOS 6 with squashFS, this can be a pig.

yum install cmake28

openjpeg for jpeg2000 install from /tmp to avoid squashfs issues svn checkout openjpeg-read-only cmake . make make install sudo ldconfig

pip install pillow

edit build directories to have jpeg2000 files in right place

nano /tmp/pip-build-root/pillow/ JPEG2K_ROOT = '/usr/lib64' sudo pip install -e .

add libopenjp2 libs to LD_LIBRARY_PATH

LD_LIBRARY_PATH=/usr/local/lib python /var/www/lost_visions/Lost-Visions/ runfcgi host= port=8080


supervisord, environment var not working, so embedded in a script instead

[program:django] command=/var/www/lost_visions/Lost-Visions/ ;command=gunicorn -c /var/www/lost_visions/Lost-Visions/crowdsource/gunicorn.settings crowdsource.wsgi:application ;environment=LD_LIBRARY_PATH="/usr/local/lib" for supervisord


export LD_LIBRARY_PATH="/usr/local/lib" export PYTHONPATH="/var/www/lost_visions/Lost-Visions" exec gunicorn -c /var/www/lost_visions/Lost-Visions/crowdsource/gunicorn.settings crowdsource.wsgi:application

ReImagine change to nginx.conf

client_max_body_size 20M;

Log files are all over the place: root user (sudo su), /debug.log