From 6e964e14c818cb49488b006ada468d1fa20cf150 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 10 Jan 2017 08:42:54 +0000 Subject: [PATCH] Add build script --- circle.yml | 4 ++++ scripts/build | 5 +++++ scripts/server.sh | 4 ---- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 scripts/build delete mode 100755 scripts/server.sh diff --git a/circle.yml b/circle.yml index 07aa909..3c3e99a 100644 --- a/circle.yml +++ b/circle.yml @@ -7,3 +7,7 @@ machine: BUILD_PRODUCTION: true NODE_ENV: production NPM_CONFIG_PRODUCTION: false + +dependencies: + pre: + - scripts/build diff --git a/scripts/build b/scripts/build new file mode 100755 index 0000000..59c0c22 --- /dev/null +++ b/scripts/build @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export PATH=env/bin:${PATH} + +pelican -o output/ -v diff --git a/scripts/server.sh b/scripts/server.sh deleted file mode 100755 index f09ca56..0000000 --- a/scripts/server.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -cd output/ -python3 -m pelican.server $PORT