From 0709cd8c7179d529728fe29c8fda04dfa0f5b3fa Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 14 Jan 2017 20:07:46 +0000 Subject: [PATCH] Build on start on production --- Procfile | 2 +- scripts/run-build-server.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 scripts/run-build-server.sh diff --git a/Procfile b/Procfile index 0d0900b..4246df3 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: pelican -v && npm start +web: bash scripts/run-build-server.sh diff --git a/scripts/run-build-server.sh b/scripts/run-build-server.sh new file mode 100644 index 0000000..2781419 --- /dev/null +++ b/scripts/run-build-server.sh @@ -0,0 +1,10 @@ +#/usr/bin/env bash + +# Make pelican build on startup + + +echo "> Building Site" +pelican -v + +echo "Starting Server" +npm start