aboutsummaryrefslogtreecommitdiff
path: root/bin/dev
blob: 5b0a3b95c5e58665b6018e1856c22d9e6e92bf04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname $0)/.."
PROJECT="maps"

if [ "${1:-}" = "start" ]; then

    tmuxinator stop "$PROJECT" 2>/dev/null || true
    tmuxinator start

elif [ "${1:-}" = "stop" ]; then

    fuser -k 3000/tcp || true
    tmuxinator stop "$PROJECT"

else

  echo "Usage: $0 start|stop"
  exit 1

fi