Merge pull request #717 from alphagov/use-wheels-to-speed-as-deployment

Use python wheels to speed up AS deployment
This commit is contained in:
imdadahad
2016-10-28 17:15:23 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -67,6 +67,8 @@ build: dependencies generate-version-file ## Build project
.PHONY: build-codedeploy-artifact
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
pip3 install wheel
pip3 wheel --wheel-dir=wheelhouse -r requirements.txt
mkdir -p target
zip -r -x@deploy-exclude.lst target/notifications-api.zip *

View File

@@ -5,4 +5,4 @@ set -eo pipefail
echo "Install dependencies"
cd /home/notify-app/notifications-api;
pip3 install -r /home/notify-app/notifications-api/requirements.txt
pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-api/requirements.txt