mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-30 20:25:10 -04:00
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:
2
Makefile
2
Makefile
@@ -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 *
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user