From dbbd3095d7c54a8fe78c30c3771b952fe143bbca Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Wed, 16 Mar 2022 10:26:53 +0100 Subject: [PATCH] Maintenance: Improve packager.io build configuration to work with new buildpack. --- contrib/packager.io/after.sh | 5 ++++- contrib/packager.io/before.sh | 2 ++ script/build/cleanup.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/packager.io/after.sh b/contrib/packager.io/after.sh index 333df1f35..54067ed4d 100755 --- a/contrib/packager.io/after.sh +++ b/contrib/packager.io/after.sh @@ -5,7 +5,10 @@ PATH=$(pwd)/bin:$(pwd)/vendor/bundle/bin:$PATH -set -e +set -eux # delete asset cache rm -r tmp/cache + +# delete node_modules folder - only required for building +rm -rf node_modules \ No newline at end of file diff --git a/contrib/packager.io/before.sh b/contrib/packager.io/before.sh index 73b0d2730..3be910b62 100755 --- a/contrib/packager.io/before.sh +++ b/contrib/packager.io/before.sh @@ -3,6 +3,8 @@ # packager.io before script # +set -eux + # print environemnt uname -a ruby -v diff --git a/script/build/cleanup.sh b/script/build/cleanup.sh index d4e0371b9..367b10e4a 100755 --- a/script/build/cleanup.sh +++ b/script/build/cleanup.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -eux rm app/assets/javascripts/app/controllers/layout_ref.coffee rm -rf app/assets/javascripts/app/views/layout_ref/