-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (31 loc) · 1.1 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
31
32
33
34
35
36
37
38
.PHONY: all
all: .installed.cfg
.venv/bin/buildout: .venv/bin/pip3 requirements.txt $(wildcard config/*.txt)
# To really be sure we have the desired setuptools we need to uninstall it first
./.venv/bin/pip3 uninstall -y setuptools
# ... and reinstall it later
./.venv/bin/pip3 install -IUr config/requirements-venv.txt -c config/constraints.txt
./.venv/bin/pip3 install -IUr requirements.txt
.venv/bin/pip3:
python3.11 -m venv .venv
.installed.cfg: .venv/bin/buildout $(wildcard *.cfg config/*.cfg profiles/*.cfg)
./.venv/bin/buildout
.PHONY: upgrade
upgrade:
./bin/upgrade plone_upgrade -A && ./bin/upgrade install -Ap
.PHONY: clean
clean:
rm -rf ./.venv
.PHONY: read_registry
read_registry: .installed.cfg
./bin/instance run scripts/read_registry.py etc/registry/*.xml
.PHONY: graceful
graceful: .installed.cfg
./bin/supervisord 2> /dev/null || ( \
./bin/supervisorctl reread && \
./bin/supervisorctl update && \
for process in `./bin/supervisorctl status | egrep -v '(zeo|HttpOk|MemoryMonitor)' | awk '{print $$1}'`; do \
./bin/supervisorctl restart "$$process" && \
sleep 30; \
done \
)