aboutsummaryrefslogtreecommitdiff
path: root/bin/dev-server
blob: 195791ce6ee5c7a7b20ea50433cf0ef06d91d0b7 (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")/..

CMD=${1:-run}

export RUST_LOG="budget=info"
export AUTH_SECRET="pMkW8PR7bjhc24bbvZLIEHfcooLzrGIh"
export DB_PATH="database.db"
export MOCK_MAILS="true"
export SECURE_COOKIES="false"
export SOCKET_ADDRESS="0.0.0.0:3000"

cargo-watch \
  --ignore README.md \
  --ignore bin \
  --ignore sql \
  --ignore database.db \
  --ignore database.db-shm \
  --ignore database.db-wal \
  --clear \
  -x "$CMD"