Update dev.dart

This commit is contained in:
Tobe Osakwe 2018-12-30 20:39:22 -05:00 committed by GitHub
parent e68b36ef6e
commit 96e0c61ead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
import 'dart:io';
import 'package:angel/angel.dart';
import 'package:angel_container/mirrors.dart';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_hot/angel_hot.dart';
import 'package:lumberjack/lumberjack.dart';
@ -8,7 +10,7 @@ import 'package:lumberjack/io.dart';
main() async {
// Watch the config/ and web/ directories for changes, and hot-reload the server.
var hot = HotReloader(() async {
var app = Angel();
var app = Angel(reflector: MirrorsReflector());
await app.configure(configureServer);
app.logger = Logger('angel')..pipe(AnsiLogPrinter.toStdout());
app.shutdownHooks.add((_) => app.logger.close());