mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Add nodejs teardown
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Executable
+9
@@ -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
|
||||
Reference in New Issue
Block a user