From f78b30a5228dce2398dd6e208b5e5d382f315da6 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Tue, 6 Jun 2017 09:16:01 -0400 Subject: [PATCH] Hot update --- bin/common.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/common.dart b/bin/common.dart index 0faf6e5..c4dba88 100644 --- a/bin/common.dart +++ b/bin/common.dart @@ -28,11 +28,11 @@ startServer(args, {bool clustered: false, SendPort sendPort}) { if (Platform.environment['ANGEL_ENV'] == 'production') server = await app.startServer(host, port); else { - var hot = new HotReloader(createServer, [ - new Directory('bin'), - new Directory('config'), - new Directory('lib') - ]); + var hot = new HotReloader(() async { + var app = await createServer(); + await app.configure(logRequests(logFile)); + return app; + }, [new Directory('config'), new Directory('lib')]); server = await hot.startServer(host, port); }