shelf_docker_shutdown 1.1.0 copy "shelf_docker_shutdown: ^1.1.0" to clipboard
shelf_docker_shutdown: ^1.1.0 copied to clipboard

Close the HttpServer on process TERM signals.

Close the HttpServer on process TERM signals.

Motivation #

You can run the shelf server in docker containers.

Because of the Dart compiler can generate single binary executables, you can get very small docker container images. It is good.

There is one problem that that containers do not shutdown smooth on docker controller's termination signal.

This library helps to do that.

Usage #

var server = await shelf_io.serve(handler, 'localhost', 8080);
await server.closeOnTermSignal();

See example folder for more details.

2
likes
150
pub points
47%
popularity

Publisher

verified publisherkkazuo.com

Close the HttpServer on process TERM signals.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on shelf_docker_shutdown