dartapplication-restartbuild-system

How to restart a dart server which file changes?


I'm running a web server with dart, it starts by:

dart server.dart

When I modified the project files, I hope this server can be restarted automatically. Is there any way to do it? Or is there any useful tool can help?


Solution

  • Not natively in Dart until bug 3310 is implemented. There may well be external tools that will restart the command line when a file changes (open to other answers).