Remove wheels-ing on deployment

This commit is contained in:
Imdad Ahad
2017-07-21 14:26:59 +01:00
parent 27b5c883bc
commit 6da3d3ed0b
3 changed files with 3 additions and 6 deletions

2
.gitignore vendored
View File

@@ -69,7 +69,5 @@ environment.sh
celerybeat-schedule celerybeat-schedule
wheelhouse/
# CloudFoundry # CloudFoundry
.cf .cf

View File

@@ -80,8 +80,7 @@ generate-version-file: ## Generates the app version file
.PHONY: build .PHONY: build
build: dependencies generate-version-file ## Build project build: dependencies generate-version-file ## Build project
rm -rf wheelhouse . venv/bin/activate && PIP_ACCEL_CACHE=${PIP_ACCEL_CACHE} pip-accel install -r requirements.txt
. venv/bin/activate && PIP_ACCEL_CACHE=${PIP_ACCEL_CACHE} pip-accel wheel --wheel-dir=wheelhouse -r requirements.txt
.PHONY: cf-build .PHONY: cf-build
cf-build: dependencies generate-version-file ## Build project for PAAS cf-build: dependencies generate-version-file ## Build project for PAAS
@@ -260,7 +259,7 @@ clean-docker-containers: ## Clean up any remaining docker containers
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf node_modules cache target venv .coverage build tests/.cache wheelhouse rm -rf node_modules cache target venv .coverage build tests/.cache
.PHONY: cf-login .PHONY: cf-login
cf-login: ## Log in to Cloud Foundry cf-login: ## Log in to Cloud Foundry

View File

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