[feature request] auto-load app when running the app, and auto-refresh when changing the code
See original GitHub issueI have built a webapp which runs like so:
pywebio.start_server(app, port=8080, debug=True)
But when I run the code, it does not automatically open the app in the browser; I need to manually type the address in the browser and run it.
Also, when I change my code while the app is running, it does not auto-refresh the webpage, and I need to refresh it manually.
Is there a way to do these already? If not, it would be a nice thing to add.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
How to auto-reload files in Node.js?
--watch server Restart the app when changing .js , .mjs , .coffee , .litcoffee , and .json files in the server folder (included...
Read more >Automatically refresh the browser on Node / Express server ...
After install, a simple working app can be seen just running npm start ... server doesn't even restart when we make changes in...
Read more >Auto reload does not detect changes to index.js #9984
The auto refresh works fine as long as I keep editing App.js , but breaks down as soon as index.js is edited. Once...
Read more >tornado.autoreload — Automatically detect code changes ...
tornado.autoreload — Automatically detect code changes in development¶. Automatically restart the server when a source file is modified.
Read more >Autoloading and Reloading Constants
Rails automatically reloads classes and modules if application files in the autoload paths change. More precisely, if the web server is running and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Now, with the latest stable verion, you can use this decorator to make page refresh when the server restart:
Usage of the decorator is:
You can pass
auto_open_webbrowser=Truetostart_server()to enable auto open web browser when server is started