1 HERE:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
11 export PATH=$(abspath $$VIRTUALENV_PATH)/bin:$(PATH)
12 # Get current release from the repository.
14 git clone -s $$GIT_REPO releases/$$RELEASE
16 # Make sure the virtualenv exists.
17 [ -e $$VIRTUALENV_PATH ] || $$VIRTUALENV_CMD $$VIRTUALENV_PATH
19 # If there's a etc/requirements.txt, install it.
20 [ -e etc/requirements.txt ] && $$VIRTUALENV_PATH/bin/pip install -r etc/requirements.txt
22 # Do 'make deploy' in release directory.
23 $(MAKE) -C releases/$$RELEASE -f $(HERE)etc/.supply-configuration.mk deploy
25 [ -e releases/current ] && cp --no-dereference --no-target-directory releases/current releases/previous
26 ln -sf --no-target-directory $$RELEASE releases/current
28 supervisorctl restart $$SUPERVISOR_TASKS