forked from cloudcompass/cloudcompass.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage
More file actions
45 lines (34 loc) · 1.13 KB
/
manage
File metadata and controls
45 lines (34 loc) · 1.13 KB
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
38
39
40
41
42
43
44
45
#!/bin/bash
export MSYS_NO_PATHCONV=1
set -e
SCRIPT_HOME="$( cd "$( dirname "$0" )" && pwd )"
# =================================================================================================================
# Usage:
# -----------------------------------------------------------------------------------------------------------------
usage () {
cat <<-EOF
Usage: $0 [command] [options]
Commands to manage a local instance of the site
Commands:
build - prepares the environment for runnng the website
You need to do this first.
start - runs the website with incremental updates
EOF
exit 1
}
# -----------------------------------------------------------------------------------------------------------------
# Functions:
# -----------------------------------------------------------------------------------------------------------------
# =================================================================================================================
pushd ${SCRIPT_HOME} >/dev/null
case "$1" in
start)
exec jekyll serve --incremental
;;
build)
bundle install
;;
*)
usage;;
esac
popd >/dev/null