From 5c607c4f80e2c00699dcd74404b8652e0dfbbe94 Mon Sep 17 00:00:00 2001 From: Claudius Date: Sun, 31 Mar 2019 01:29:34 +0100 Subject: cleanup of the heroku configuration this removes the general `postinstall` call to `bin/heroku` and instead puts it into a heroku-prebuild hook. At the same time, env vars get updated to use the `CMD` prefix. The configured buildpacks were not used. Finally, npm run build is now automatically done by Heroku. Signed-off-by: Claudius --- bin/heroku | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/heroku b/bin/heroku index 24727347..c9642c20 100755 --- a/bin/heroku +++ b/bin/heroku @@ -2,9 +2,7 @@ set -e -if [ "$BUILD_ASSETS" = true ]; then - # setup config files - cat << EOF > .sequelizerc +cat << EOF > .sequelizerc var path = require('path'); module.exports = { @@ -17,7 +15,7 @@ module.exports = { EOF - cat << EOF > config.json +cat << EOF > config.json { "production": { @@ -25,7 +23,3 @@ EOF } EOF - - # build app - npm run build -fi -- cgit v1.2.3