From 912bbfca07c1144463dabcef8e2b02827bb93296 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Tue, 17 Jul 2018 17:25:06 +0100 Subject: [PATCH] Use heroku-postbuild instead of postinstall. --- package.json | 6 +++--- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bc2f2aa41..6f735e6ac 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "Opentech", "version": "1.0.0", - "description": "Build the static src.", - "cacheDirectories": ["client/node_modules"], + "description": "Build the static_src assets.", + "cacheDirectories": ["opentech/static_src/node_modules"], "scripts": { - "postinstall": "cd opentech/static_src && yarn install && npm run build:prod" + "heroku-postbuild": "cd opentech/static_src && yarn install && npm run build:prod" }, "engines": { "node": "8.11.3", diff --git a/requirements.txt b/requirements.txt index 02d44e86e..49bd97ebd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -29,7 +29,7 @@ django_select2==6.0.1 # Production dependencies dj-database-url==0.5.0 -django-heroku=0.3.1 +django-heroku==0.3.1 whitenoise==2.0.4 gunicorn==19.9.0 ConcurrentLogHandler==0.9.1 -- GitLab