forked from getsentry/sentry-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver
More file actions
executable file
·42 lines (29 loc) · 972 Bytes
/
Copy pathserver
File metadata and controls
executable file
·42 lines (29 loc) · 972 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
38
39
40
41
42
#!/bin/bash
# usage: bin/server
#
# Run the jekyll server
set -e
green="\033[0;32m"
reset="\033[0;m"
FAST_BUILD=${FAST_BUILD:-true}
echo -e $green
if [ "$FAST_BUILD" = false ]; then
echo "🐢 Running in standard build mode. Things will be slow but predictable"
else
echo "🐇 Running in performance mode. The first build will take a while, but the rest will be faster."
echo "🐇 The following optimizations are applied to builds:"
export JEKYLL_INCREMENTAL=${JEKYLL_INCREMENTAL:-true}
if [ "$JEKYLL_INCREMENTAL" = true ]; then
echo "🐇 - Jekyll is running with the --incremental flag"
fi
export JEKYLL_ENABLE_PLATFORM_API=${JEKYLL_ENABLE_PLATFORM_API:-false}
if [ "$JEKYLL_ENABLE_PLATFORM_API" = false ]; then
echo "🐇 - Platform API generation (docs.sentry.io/_platforms) is disabled"
fi
fi
echo -e $reset
rm -rf _site
rm -rf .jekyll-cache
yarn
(bundle check || bundle install)
./bin/webpack-watch & ./bin/jekyll-watch