Refreshing Cockpit plugin index.html without restart? #19702
-
Started playing with Cockpit custom plugin as outlined at https://cockpit-project.org/blog/creating-plugins-for-the-cockpit-user-interface.html. But if I create |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't have to restart the service at all. In the worst case, log out and back in. However, it is enough to just force-refresh the page with (Ctrl+Shift+R in Firefox and Chromium), which provides much faster iteration. Also, please don't copy your own custom pages to /usr/share/, that's package manager territory. If you keep building and installing an rpm that's ok, but it's much faster to just symlink the build tree into ~/.local/share/cockpit, with |
Beta Was this translation helpful? Give feedback.
You don't have to restart the service at all. In the worst case, log out and back in. However, it is enough to just force-refresh the page with (Ctrl+Shift+R in Firefox and Chromium), which provides much faster iteration.
Also, please don't copy your own custom pages to /usr/share/, that's package manager territory. If you keep building and installing an rpm that's ok, but it's much faster to just symlink the build tree into ~/.local/share/cockpit, with
make devel-install
, see https://github.com/cockpit-project/starter-kit/blob/main/README.md#installing