File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ coderd/database/dump.sql: $(wildcard coderd/database/migrations/*.sql)
60
60
coderd/database/querier.go : coderd/database/dump.sql $(wildcard coderd/database/queries/* .sql)
61
61
coderd/database/generate.sh
62
62
63
+ # This target is deprecated, as GNU make has issues passing signals to subprocesses.
63
64
dev :
64
- ./scripts/develop.sh
65
+ @echo Please run ./scripts/develop.sh manually.
65
66
.PHONY : dev
66
67
67
68
fmt/prettier :
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # Allow toggling verbose output
4
+ [[ ! -z ${VERBOSE:- " " } ]] && set -x
3
5
set -euo pipefail
4
- set -x
5
6
6
7
SCRIPT_DIR=$( dirname " ${BASH_SOURCE[0]} " )
8
+ source " ${SCRIPT_DIR} /lib.sh"
7
9
PROJECT_ROOT=$( cd " $SCRIPT_DIR " && git rev-parse --show-toplevel)
8
10
set +u
9
11
CODER_DEV_ADMIN_PASSWORD=" ${CODER_DEV_ADMIN_PASSWORD:- password} "
10
12
set -u
11
13
12
- # Preflight check: make sure nothing is listening on port 3000 or 8080
14
+ # Preflight checks: ensure we have our required dependencies, and make sure nothing is listening on port 3000 or 8080
15
+ dependencies git make nc go yarn
13
16
nc -z 127.0.0.1 3000 && echo ' == ERROR: something is listening on port 3000. Kill it and re-run this script.' && exit 1
14
17
nc -z 127.0.0.1 8080 && echo ' == ERROR: something is listening on port 8080. Kill it and re-run this script.' && exit 1
15
18
You can’t perform that action at this time.
0 commit comments