Pergunta

Is start (Dart server side framework) auto-refresh when one of our source code changed (just like PHP)?

Is bulls_eye, bloodless and express too?

or if they are not, is there any Dart server side framework that able to do that (edit code, then test on the browser, without needing to restart the dart/server program)?

Foi útil?

Solução

Currently this is not yet possible in Dart. If you change the code you have to restart the app.
I wouldn't expect this to work anytime soon.
A main feature to make this possible is to manipulate the code at runtime. This is planned but as far as I know not yet started.

EDIT
The above mentioned feature is necessary when you want code to be updated without loosing the current state of the application but that is usually not so important on the server because it should be (mostly) stateless anyway.

In Dart there's no need to restart the server app when only the client part changes.

If you really just want to restart the entire server when the code changes you should be able to do that by yourself. Create a console app that loads the server app into an isolate (spawnUri) and watch the source directory for file changes. In the case of a file change shutdown the server-app-isolate and create a new one.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top