Hot update
This commit is contained in:
parent
6123740eb5
commit
f78b30a522
1 changed files with 5 additions and 5 deletions
|
@ -28,11 +28,11 @@ startServer(args, {bool clustered: false, SendPort sendPort}) {
|
||||||
if (Platform.environment['ANGEL_ENV'] == 'production')
|
if (Platform.environment['ANGEL_ENV'] == 'production')
|
||||||
server = await app.startServer(host, port);
|
server = await app.startServer(host, port);
|
||||||
else {
|
else {
|
||||||
var hot = new HotReloader(createServer, [
|
var hot = new HotReloader(() async {
|
||||||
new Directory('bin'),
|
var app = await createServer();
|
||||||
new Directory('config'),
|
await app.configure(logRequests(logFile));
|
||||||
new Directory('lib')
|
return app;
|
||||||
]);
|
}, [new Directory('config'), new Directory('lib')]);
|
||||||
server = await hot.startServer(host, port);
|
server = await hot.startServer(host, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue