-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use webdev as a daemon #55
Comments
Thanks for looking into this. Maybe we can combine boach approaches by using webdev as a package and using the deamon api. |
When I run webdev as daemon, it serves the page just as the |
Yes, from the outside it does look like that it does nothing but the same as the
What's different, is that you can give it commands via jsonRPC on stdin. So, you can restart the app, stop the daemon, get it's version., and it will respond on stdout. Most things are documented on the flutter page, how one should attach to the process, the communication workflow. I tried to pass more arguments than specified in the help, because in the code it looks like that the other arguments are passed to the mentioned workflow, so it wouldn't launch chrome, but the args parser wouldn't let me do it. |
Fyi the new cli uses the DevWorkflow directly. |
As mentioned in #49 there is other ways of using the webdev package. I had quick a look at the source code of webdev and there is an "undocumented" command line option to use it as a daemon, just like someone can use flutter as described in the documentation.
pro:
con:
Maybe a mixed implementation could be used:
I wanted to create this issue to signal my finding, and start a conversation. Eventually I want to work on this and the mentioned issue's implementation, and I'm curious if creating such feature would be any help. 😄
The text was updated successfully, but these errors were encountered: