forked from alfredfrancis/ai-chatbot-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 931 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
setup: venv/bin/activate
venv/bin/activate: requirements.txt
test -d venv || virtualenv -p python3 venv
. venv/bin/activate; pip install -Ur requirements.txt
. venv/bin/activate; python manage.py install_nltk_dependencies
. venv/bin/activate; python -m spacy download en_core_web_md && python -m spacy link en_core_web_md en
restore_db:
mongorestore --drop --db=iky-ai --dir=dump/iky-ai/
init: restore_db setup
. venv/bin/activate && python setup.py
setup_spacy:
. venv/bin/activate && python -m spacy download en_core_web_md && python -m spacy link en_core_web_md en
run_dev:
. venv/bin/activate && python run.py
run_prod:
. venv/bin/activate && APPLICATION_ENV="Production" gunicorn -k gevent --bind 0.0.0.0:8080 run:app
run_docker:
gunicorn run:app --bind 0.0.0.0:8080 --access-logfile=logs/gunicorn-access.log --error-logfile logs/gunicorn-error.log
clean:
rm -rf venv
find -iname "*.pyc" -delete