-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgraded flask version, change spacy model to md
- Loading branch information
1 parent
d3da249
commit 4db4b9b
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
Flask==2.0.1 | ||
Flask==1.1.2 | ||
flask-mongoengine==0.9.5 | ||
Flask-Script==2.0.6 | ||
Flask-Cors==3.0.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
setup: venv/bin/activate | ||
|
||
venv/bin/activate: | ||
. 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 |