@@ -14,11 +14,11 @@ function create_initial_user() {
14
14
# TODO: We need to wait for `coderd` to spin up -
15
15
# need to replace with a deterministic strategy
16
16
sleep 5s
17
-
17
+
18
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/user
19
+ -d" {\" email\" :\" $EMAIL \" ,\" username\" :\" $USERNAME \" ,\" organization\" :\" $ORGANIZATION \" ,\" password\" :\" $PASSWORD \" }" \
20
+ -H' Content-Type:application/json' \
21
+ http://localhost:3000/api/v2/user
22
22
}
23
23
24
24
# Do initial build - a dev build for coderd.
@@ -29,4 +29,9 @@ make bin/coderd
29
29
# This is a way to run multiple processes in parallel, and have Ctrl-C work correctly
30
30
# to kill both at the same time. For more details, see:
31
31
# https://stackoverflow.com/questions/3004811/how-do-you-run-multiple-programs-in-parallel-from-a-bash-script
32
- (trap' kill 0' SIGINT; create_initial_user& CODERV2_HOST=http://127.0.0.1:3000 yarn dev& ./bin/coderd)
32
+ (
33
+ trap ' kill 0' SIGINT
34
+ create_initial_user&
35
+ CODERV2_HOST=http://127.0.0.1:3000 yarn --cwd=./site dev&
36
+ ./bin/coderd
37
+ )