mysql -u root -p
CREATE DATABASE jabe;
For tests
CREATE DATABASE jabe_test;
GRANT ALL ON jabe.* TO jabe@localhost IDENTIFIED BY 'jabe';
GRANT ALL ON jabe_test.* TO jabe@localhost IDENTIFIED BY 'jabe';
virtualenv -p python3 venv
source venv/bin/activate
pip3 install -r requirements.txt
только один раз
python manage.py db init
при каждом изменении
python manage.py db migrate
python manage.py db upgrade
sudo systemctl daemon-reload
sudo systemctl start gunicorn.service
sudo systemctl restart gunicorn.service
sudo systemctl start gunicorn.socket
sudo systemctl restart gunicorn.socket
#run celery worker
celery worker -A celery_worker.celery --loglevel=info
or
sudo systemctl daemon-reload
sudo systemctl start celery.service
sudo systemctl restart celery.service
sudo systemctl daemon-reload
sudo systemctl start nodelistener.service
sudo systemctl restart nodelistener.service
ln -s /home/melaman/JABE/nginx_jabe.conf /etc/nginx/sites-available/nginx_jabe.conf
python manage.py findprevious -b 250000 -s 25000
python manage.py startparsing