Add build script
This commit is contained in:
parent
0a1f2fb825
commit
6e964e14c8
3 changed files with 9 additions and 4 deletions
|
@ -7,3 +7,7 @@ machine:
|
||||||
BUILD_PRODUCTION: true
|
BUILD_PRODUCTION: true
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
NPM_CONFIG_PRODUCTION: false
|
NPM_CONFIG_PRODUCTION: false
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
pre:
|
||||||
|
- scripts/build
|
||||||
|
|
5
scripts/build
Executable file
5
scripts/build
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export PATH=env/bin:${PATH}
|
||||||
|
|
||||||
|
pelican -o output/ -v
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
cd output/
|
|
||||||
python3 -m pelican.server $PORT
|
|
Reference in a new issue