Update dev.dart
This commit is contained in:
parent
e68b36ef6e
commit
96e0c61ead
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'package:angel/angel.dart';
|
import 'package:angel/angel.dart';
|
||||||
|
|
||||||
|
import 'package:angel_container/mirrors.dart';
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel_framework/angel_framework.dart';
|
||||||
import 'package:angel_hot/angel_hot.dart';
|
import 'package:angel_hot/angel_hot.dart';
|
||||||
import 'package:lumberjack/lumberjack.dart';
|
import 'package:lumberjack/lumberjack.dart';
|
||||||
|
@ -8,7 +10,7 @@ import 'package:lumberjack/io.dart';
|
||||||
main() async {
|
main() async {
|
||||||
// Watch the config/ and web/ directories for changes, and hot-reload the server.
|
// Watch the config/ and web/ directories for changes, and hot-reload the server.
|
||||||
var hot = HotReloader(() async {
|
var hot = HotReloader(() async {
|
||||||
var app = Angel();
|
var app = Angel(reflector: MirrorsReflector());
|
||||||
await app.configure(configureServer);
|
await app.configure(configureServer);
|
||||||
app.logger = Logger('angel')..pipe(AnsiLogPrinter.toStdout());
|
app.logger = Logger('angel')..pipe(AnsiLogPrinter.toStdout());
|
||||||
app.shutdownHooks.add((_) => app.logger.close());
|
app.shutdownHooks.add((_) => app.logger.close());
|
||||||
|
|
Loading…
Reference in a new issue