shelf_docker_shutdown

Last updated:

0 purchases

shelf_docker_shutdown Image
shelf_docker_shutdown Images
Add to Cart

Description:

shelf docker shutdown

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();
copied to clipboard
See example folder for more details.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.