File: website_run.sh

package info (click to toggle)
golang-github-hashicorp-serf 0.7.0~ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 1,108 kB
  • ctags: 1,103
  • sloc: sh: 459; makefile: 54; python: 11
file content (20 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"

# Change into that directory
cd $DIR/website

# Run the website
echo
echo "=========== INSTALLING WEBSITE DEPS ==========="
echo
bundle

echo
echo "=========== STARTING WEBSITE ==========="
echo
bundle exec middleman server