tangled
alpha
login
or
join now
kacaii.dev
/
senac-brigade-server
0
fork
atom
wip: currently rewriting the project as a full stack application
tangled.org/kacaii.dev/sigo
gleam
0
fork
atom
overview
issues
1
pulls
pipelines
:recycle: remove "SIGO_BIND" env variable
kacaii.dev
3 months ago
0f495d8d
65cfa59a
+3
-5
1 changed file
expand all
collapse all
unified
split
src
app
supervision_tree.gleam
+3
-5
src/app/supervision_tree.gleam
···
1
1
import app/web/context
2
2
-
import envoy
3
2
import gleam/erlang/process
4
3
import gleam/http/request
5
4
import gleam/http/response
···
34
33
}
35
34
}
36
35
37
37
-
let bind_to = case ctx.env, envoy.get("SIGO_BIND") {
38
38
-
context.Production, _ -> "0.0.0.0"
39
39
-
context.Dev, Ok(bind) -> bind
40
40
-
context.Dev, _ -> "localhost"
36
36
+
let bind_to = case ctx.env {
37
37
+
context.Production -> "0.0.0.0"
38
38
+
context.Dev -> "localhost"
41
39
}
42
40
43
41
// Adding Mist to the supervision tree