From eb0bbe2ec5ee739e9ae66c77486ae886545c1917 Mon Sep 17 00:00:00 2001 From: Peter Kos Date: Wed, 9 Dec 2020 21:23:24 -0500 Subject: [PATCH 1/4] Add static.json for heroku-buildpack-static Signed-off-by: Peter Kos --- static.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 static.json diff --git a/static.json b/static.json new file mode 100644 index 000000000..26af7b62b --- /dev/null +++ b/static.json @@ -0,0 +1,3 @@ +{ + "root": "build/" +} \ No newline at end of file From 26698ce4a6ddef144a8a942a4c5d2addc75d761c Mon Sep 17 00:00:00 2001 From: Peter Kos Date: Wed, 9 Dec 2020 23:05:41 -0500 Subject: [PATCH 2/4] Added buildpack run script https://elements.heroku.com/buildpacks/parcelconnect/heroku-buildpack-run Signed-off-by: Peter Kos --- buildpack-run.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 buildpack-run.sh diff --git a/buildpack-run.sh b/buildpack-run.sh new file mode 100644 index 000000000..26b519e1f --- /dev/null +++ b/buildpack-run.sh @@ -0,0 +1,4 @@ +# Runs build script so heroku-buildpack-static +# has a freshly compiled static site to work with. +rm -r build +npm run build From bddc2d6e3cfa7cfc5c8dd89ca36377c22e2009cb Mon Sep 17 00:00:00 2001 From: Peter Kos Date: Wed, 9 Dec 2020 23:53:53 -0500 Subject: [PATCH 3/4] Turns out we need to INSTALL our plugins :) Signed-off-by: Peter Kos --- buildpack-run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/buildpack-run.sh b/buildpack-run.sh index 26b519e1f..2249a84b9 100644 --- a/buildpack-run.sh +++ b/buildpack-run.sh @@ -1,4 +1,5 @@ # Runs build script so heroku-buildpack-static # has a freshly compiled static site to work with. rm -r build +npm install npm run build From 61e1f0e9c74ad31a61a4904c4664a764e046fae3 Mon Sep 17 00:00:00 2001 From: Peter Kos Date: Thu, 10 Dec 2020 00:18:53 -0500 Subject: [PATCH 4/4] newline EOF Signed-off-by: Peter Kos --- static.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static.json b/static.json index 26af7b62b..bbad4d9d6 100644 --- a/static.json +++ b/static.json @@ -1,3 +1,3 @@ { "root": "build/" -} \ No newline at end of file +}