Add nodejs teardown

This commit is contained in:
Oliver Günther
2018-12-10 15:10:34 +01:00
parent 01fd9cd2e2
commit f20ad79e6f
3 changed files with 10 additions and 1 deletions
-1
View File
@@ -1,3 +1,2 @@
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1
https://github.com/istrategylabs/heroku-buildpack-node-cleanup
+1
View File
@@ -19,6 +19,7 @@ targets:
build_dependencies:
- sqlite3-devel
before_precompile: "packaging/setup"
after_precompile: "packaging/teardown"
crons:
- packaging/cron/openproject-hourly-tasks
- packaging/cron/openproject-clear-old-sessions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
: ${APP_HOME?"Need to set APP_HOME for teardown"}
echo "Cleaning up NODE installation"
pushd $APP_HOME
rm -rf .heroku/node node_modules frontend/node_modules || true