From 370f1bf7ce6cddb195ea3f51fa3389dce2a1d848 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Thu, 7 Aug 2014 21:21:53 +0100 Subject: [PATCH] Make sure the npm and apt-get caches are cleaned. --- postinstall.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postinstall.sh b/postinstall.sh index ba41ce36..2fb637e4 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -2,6 +2,9 @@ if [ $NODE_ENV == 'production' ]; then node ./node_modules/coffee-script/bin/coffee -c ./src # We don't need coffee-script at runtime npm uninstall coffee-script + # Empty the apt and npm caches of the packages we installed + npm cache clean + apt-get clean # Remove deploy key rm -rf /root/.ssh/* deploy_key # Remove unnecessary source files