create virtualenv:
python3.10 -m venv semantle-de
source semantle-de/bin/activate
install requirements
pip install -r requirements.txt
Download Word2Vec and dictionary data:
cd data
wget https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.de.300.vec.gz
gzip -d cc.de.300.vec.gz
wget https://www.winedt.org/dict/German.zip
unzip German.zip
save word2vec in db
cd ..
python process_vecs.py
(optional) Regenerate secrets
python generate_secrets.py
start flask/gunicorn (on ssh)
export FLASK_APP=semantle
nohup gunicorn semantle:app &
restart after pull
ps aux | grep gunicorn
kill -HUP <guniconr pid>
nginx...