-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
30 lines (24 loc) · 1.25 KB
/
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
export
PYTHONPATH := .
test:
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/testing.py python -m pytest -s
development:
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/development.py python run.py
worker:
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/development.py celery -A celery_worker.celery worker --loglevel=info
local_docker:
docker build -t capi:local . -f Dockerfile_local.dockerfile \
--build-arg accesskey=$(shell aws configure get aws_access_key_id) \
--build-arg secretkey=$(shell aws configure get aws_secret_access_key)
register_development:
ifdef gas_price
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/development.py FLASK_APP=run.py flask admin register --gas_price=$(gas_price)
else
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/development.py FLASK_APP=run.py flask admin register
endif
resolve_development:
ifdef gas_price
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/development.py FLASK_APP=run.py flask admin resolve --hash=$(hash) --gas_price=$(gas_price)
else
ENV_CONFIG_FILE=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))config/development.py FLASK_APP=run.py flask admin resolve --hash=$(hash)
endif