platform/example/main.dart

14 lines
328 B
Dart
Raw Normal View History

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