-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
41 lines (28 loc) · 816 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
30
31
32
33
34
35
36
37
38
39
40
41
install:
poetry install
export_requirments:
poetry export --without-hashes -f requirements.txt --output requirements.txt
deploy-heroku:
make export_requirments && git push heroku master
deploy-deta:
pytest && space push
test-pytest:
pytest --capture=no --durations=10
start-server:
code . && uvicorn main:app --reload
new-tab:
gnome-terminal --tab -e "bash -c 'cd ../../frontend/nemo/ && code . && npm start'" && make start-server
docker_image:
docker build -t nemo-app .
start_docker_container:
docker run -d --name nemo-app -p 5000:5000 nemo-app
format:
bash format.sh
lint:
pylint nemo
apache_benchmark:
ab -c 100 -n 10000 http://127.0.0.1:8000/
molotov_benchmark:
molotov -v -r 100 benchmark/molotov-benchmark.py
remove_pycache:
find . -type d -name '__pycache__' -exec rm -rf {} +