2019-02-06 21:44:38 +00:00
|
|
|
import 'dart:io';
|
2024-10-13 01:45:27 +00:00
|
|
|
import 'package:protevus_hot/protevus_hot.dart';
|
2019-02-07 02:57:10 +00:00
|
|
|
import 'server.dart';
|
2017-06-06 12:07:59 +00:00
|
|
|
|
2021-05-01 02:57:26 +00:00
|
|
|
void main() async {
|
2019-05-01 09:51:27 +00:00
|
|
|
var hot = HotReloader(createServer, [
|
|
|
|
Directory('src'),
|
2019-02-07 02:57:10 +00:00
|
|
|
'server.dart',
|
|
|
|
// Also allowed: Platform.script,
|
2024-10-13 01:45:27 +00:00
|
|
|
Uri.parse('package:protevus_hot/protevus_hot.dart')
|
2019-02-06 21:44:38 +00:00
|
|
|
]);
|
|
|
|
await hot.startServer('127.0.0.1', 3000);
|
|
|
|
}
|