forked from Purdue-CSUSB/purdueusb.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·37 lines (32 loc) · 671 Bytes
/
run.sh
File metadata and controls
executable file
·37 lines (32 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
JENV="development"
OPEN=true
LIVE=false
TRACE=false
while getopts "chplit" opt; do
case "${opt}" in
c) ./clean.sh
;;
h) OPEN=false
;;
p) JENV="production"
;;
l) LIVE=true
;;
i) bundle install
npm install
;;
t) TRACE=true
;;
esac
done
echo Running in $JENV mode.
$OPEN && echo "Opening site in browser" && ./opensite.sh &
OPTS="--host 0.0.0.0"
if [ $LIVE = true ]; then
OPTS="${OPTS} --incremental --livereload"
fi
if [ $TRACE = true ]; then
OPTS="${OPTS} --trace"
fi
eval JEKYLL_ENV=${JENV} bundle exec jekyll serve ${OPTS}