Build on start on production
This commit is contained in:
parent
debd2acff6
commit
0709cd8c71
2 changed files with 11 additions and 1 deletions
2
Procfile
2
Procfile
|
@ -1 +1 @@
|
||||||
web: pelican -v && npm start
|
web: bash scripts/run-build-server.sh
|
||||||
|
|
10
scripts/run-build-server.sh
Normal file
10
scripts/run-build-server.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#/usr/bin/env bash
|
||||||
|
|
||||||
|
# Make pelican build on startup
|
||||||
|
|
||||||
|
|
||||||
|
echo "> Building Site"
|
||||||
|
pelican -v
|
||||||
|
|
||||||
|
echo "Starting Server"
|
||||||
|
npm start
|
Reference in a new issue