diff --git a/package.json b/package.json index bc2f2aa41946fd0f2034f5078c8a3d3ca9a9ea9a..6f735e6ac8c4d8a60c498c3fab95311829bd78ba 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 02d44e86ef1d9b5b38db12209f8f1781307131e1..49bd97ebd78e75869022cb2fd2c1985529882546 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