serverpod / serverpod

Serverpod is a next-generation app and web server, explicitly built for the Flutter and Dart ecosystem.
BSD 3-Clause "New" or "Revised" License
2.38k stars 217 forks source link

webserver does not support hot reload #2403

Open luminecs opened 2 weeks ago

luminecs commented 2 weeks ago

Describe the bug webserver does not support hot reload

To Reproduce Steps to reproduce the behavior:

  1. create a new serverpod project
  2. run command docker compose up --build --detach in server directory.
  3. run command dart bin/main.dart --apply-migrations to start server.
  4. open http://localhost:8082/ with a browser, we can see the default.html
  5. modify the default.html, and refresh the browser, but the page does not update.
  6. replace the DefaultPageWidget by another custom abstract widget, and refresh the browser, but the page does not update.

Expected behavior Expect the page to update automatically

Screenshots none

Serverpod versions

Platform information linux

Additional context none

lukehutch commented 1 week ago

Dup of #1748