Skip to content

Commit 553466f

Browse files
committed
addedmakefile
1 parent 2a8e7f9 commit 553466f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
setup: venv/bin/activate
2+
3+
venv/bin/activate: requirements.txt
4+
test -d venv || virtualenv venv
5+
. venv/bin/activate; pip install -Ur requirements.txt
6+
7+
restore_db:
8+
mongorestore --drop --db=iky-ai --dir=dump/iky-ai/
9+
10+
init: restore_db setup
11+
. venv/bin/activate && python setup.py
12+
13+
run_dev:
14+
. venv/bin/activate && python run.py
15+
16+
run_prod:
17+
. venv/bin/activate && APPLICATION_ENV="Production" gunicorn -k gevent --bind 0.0.0.0:8001 run:app
18+
19+
clean:
20+
rm -rf venv
21+
find -iname "*.pyc" -delete

0 commit comments

Comments
 (0)