Skip to content

Commit b942c74

Browse files
authored
chore: update develop script (#742)
1 parent 6612e3c commit b942c74

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

develop.sh

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,9 @@
22

33
set -euo pipefail
44

5-
EMAIL="${EMAIL:-admin@coder.com}"
6-
USERNAME="${USERNAME:-admin}"
7-
ORGANIZATION="${ORGANIZATION:-ACME-Corp}"
8-
PASSWORD="${PASSWORD:-password}"
95
PROJECT_ROOT="$(git rev-parse --show-toplevel)"
106
cd "${PROJECT_ROOT}"
117

12-
# Helper to create an initial user
13-
function create_initial_user() {
14-
# TODO: We need to wait for `coderd` to spin up -
15-
# need to replace with a deterministic strategy
16-
sleep 5s
17-
18-
curl -X POST \
19-
-d "{\"email\": \"$EMAIL\", \"username\": \"$USERNAME\", \"organization\": \"$ORGANIZATION\", \"password\": \"$PASSWORD\"}" \
20-
-H 'Content-Type:application/json' \
21-
http://localhost:3000/api/v2/users/first
22-
}
23-
248
# Run yarn install, to make sure node_modules are ready to go
259
"$PROJECT_ROOT/scripts/yarn_install.sh"
2610

@@ -31,5 +15,5 @@ function create_initial_user() {
3115
trap 'kill 0' SIGINT
3216
create_initial_user &
3317
CODERV2_HOST=http://127.0.0.1:3000 yarn --cwd=./site dev &
34-
go run cmd/coder/main.go start
18+
go run cmd/coder/main.go start --dev --tunnel=false
3519
)

0 commit comments

Comments
 (0)