forked from mozilla-iam/auth0-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 780 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
URI := dev.mozilla-dev.auth0.com
CLIENTID :=
CLIENTSECRET :=
all:
@echo 'Available make targets:'
@grep '^[^#[:space:]].*:' Makefile
python-venv: venv
venv:
$(shell [ -d venv ] || python3 -m venv venv)
echo "# Run this in your shell to activate:"
echo "source venv/bin/activate"
install:
pip install -r requirements.txt
deploy-local:
# Requires a credentials.json file to be present and valid
# Useful for local tests
uploader_rules.py -r rules
deploy-stage:
@echo "Deploying to Auth0 stage instace in: $(URI)"
uploader_rules.py -r rules -u $(URI) -c $(CLIENTID) -s $(CLIENTSECRET)
deploy-prod:
@echo "Deploying to Auth0 Production instance in: $(URI)"
uploader_rules.py -r rules -u $(URI) -c $(CLIENTID) -s $(CLIENTSECRET)
.PHONY: venv all install deploy