Skip to content

Commit ba5500d

Browse files
committed
Improve server, fix issue when running on ubuntu
1 parent 5b369c5 commit ba5500d

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

LocalLambdaHost.scala

+4-14
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ object LocalLambdaHost {
283283

284284
}
285285

286-
lazy val lambdaProcess = lambdaScript
286+
val lambdaProcess = lambdaScript
287287
.map(script =>
288288
println(
289289
s"${CYAN}Running lambda script: $script ${RESET}"
@@ -301,7 +301,9 @@ object LocalLambdaHost {
301301
"AWS_LAMBDA_FUNCTION_VERSION" -> "0"
302302
),
303303
mergeErrIntoOut = true,
304-
destroyOnExit = true
304+
destroyOnExit = true,
305+
stdout = os.Inherit,
306+
stderr = os.Inherit
305307
)
306308
)
307309
)
@@ -312,18 +314,6 @@ object LocalLambdaHost {
312314
None
313315
}
314316

315-
val lambdaProcessThread =
316-
Thread.ofVirtual().start {
317-
new Runnable {
318-
override def run(): Unit = {
319-
lambdaProcess.map { p =>
320-
p.stdout.transferTo(System.out)
321-
}
322-
323-
}
324-
}
325-
}
326-
327317
ready = true
328318
println(s"${CYAN}Ready.${RESET}")
329319

0 commit comments

Comments
 (0)