-
Notifications
You must be signed in to change notification settings - Fork 61
/
Makefile
35 lines (25 loc) · 1022 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
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build-image: ## Build all docker images
docker build -t ethtx_ce .
get-git-version: ## Get git version
./scripts/git_version_for_docker.sh
run-database: ## Run only a local database required for local development
docker-compose up -d mongo mongo-express
run-local:
PYTHONPATH=./ethtx_ce FLASK_APP=ethtx_ce/app/wsgi.py FLASK_DEBUG=1 pipenv run flask run --host=0.0.0.0 --port 5555
run-prod:
fuser -k 5000/tcp || true
PYTHONPATH=./ethtx_ce pipenv run gunicorn --workers 4 --max-requests 4000 --timeout 600 --bind :5000 app.wsgi:app
run-docker:
fuser -k 5000/tcp || true
docker-compose up -d
run-test-docker:
docker run -it ethtx_ce pipenv run python -m pytest .
test:
PYTHONPATH=./ethtx_ce pipenv run python -m pytest ethtx_ce/tests/
test-all:
PYTHONPATH=./ethtx_ce pipenv run python -m pytest .
setup:
pipenv install --dev
pipenv run pre-commit install