forked from EthTx/ethtx_ce
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
37 lines (25 loc) · 915 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
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:
FLASK_APP=wsgi.py FLASK_DEBUG=1 pipenv run flask run --host=0.0.0.0 --port 5000
run-prod:
fuser -k 5000/tcp || true
pipenv run gunicorn --workers 4 --max-requests 4000 --timeout 600 --bind :5000 wsgi:app
run-docker:
fuser -k 5000/tcp || true
docker-compose up -d
run-test-docker:
docker run -it ethtx_ce make test
test:
PYTHONPATH=. pipenv run python -m pytest tests
test-all:
PYTHONPATH=. pipenv run python -m pytest .
setup:
pipenv install --dev
pipenv run pre-commit install