Skip to content

Instantly share code, notes, and snippets.

@adamw
Created June 7, 2019 19:20
Show Gist options
  • Save adamw/414b2320349d9d934c75d0f08f985bca to your computer and use it in GitHub Desktop.
Save adamw/414b2320349d9d934c75d0f08f985bca to your computer and use it in GitHub Desktop.
implicit val runtime: DefaultRuntime = new DefaultRuntime {}
val serve = BlazeServerBuilder[Task]
.bindHttp(8080, "localhost")
.withHttpApp(Router("/" -> service).orNotFound)
.serve
.compile
.drain
runtime.unsafeRun(serve)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment