2019-02-06 21:44:38 +00:00
|
|
|
import 'dart:io';
|
2017-06-06 12:07:59 +00:00
|
|
|
import 'package:angel_hot/angel_hot.dart';
|
2019-02-07 02:57:10 +00:00
|
|
|
import 'server.dart';
|
2017-06-06 12:07:59 +00:00
|
|
|
|
2019-02-06 21:44:38 +00:00
|
|
|
main() async {
|
|
|
|
var hot = new HotReloader(createServer, [
|
|
|
|
new Directory('src'),
|
2019-02-07 02:57:10 +00:00
|
|
|
'server.dart',
|
|
|
|
// Also allowed: Platform.script,
|
2019-02-06 21:44:38 +00:00
|
|
|
Uri.parse('package:angel_hot/angel_hot.dart')
|
|
|
|
]);
|
|
|
|
await hot.startServer('127.0.0.1', 3000);
|
|
|
|
}
|