Files
dagu/ui
Yota Hamada 5a70ff834b upgrade: show restart and install-specific update steps (#3289)
The update flow dead-ended: `dagu upgrade` replaced the binary while
the running server kept the old one, the banner vanished, and a day
later it came back while `dagu upgrade` reported nothing to do. The
banner also always suggested `dagu upgrade`, which fails for Homebrew,
Snap, go install and container installs.

The server now notices when its binary is replaced and shows a restart
notice with the installer service's restart command (launchd, systemd,
WinSW), and `dagu upgrade` prints the same. The update banner shows
the command for the install method, and none for containers.
Kubernetes and Podman now count as containers, and the Windows
permission error suggests Administrator instead of sudo. Restarting
stays manual because it can stop running workflows.
2026-10-22 14:30:41 +09:00
..
2026-07-20 02:21:29 +09:00
2026-02-18 20:24:20 +09:00

UI

Prerequisites

  • Go (latest stable)
  • Node.js (latest stable)
  • pnpm

Development Instructions

1. Starting the Backend Server

The Dagu UI relies on a backend server that provides the necessary data for the UI to function properly. From the repository root, run:

make run-server

This command will start the backend server at 127.0.0.1:8080 by default. If you need to use a different address or port, you can modify the appropriate settings in the backend configuration file.

2. Starting the Webpack Dev Server

Once the backend server is up and running, you can start the Webpack dev server to serve the frontend assets. To do this, navigate to the ui/ directory and execute the following commands:

cd ui/
pnpm install
pnpm dev

This command will start the Webpack dev server at 127.0.0.1:8081. You can access the UI by opening your web browser and navigating to http://localhost:8081.

3. Building the Bundle.js File

If you need to build the bundle.js file, which contains all the necessary frontend assets, you can do so using the following command:

cd ../
make ui

This command will build the bundle.js file and copy it to internal/service/frontend/assets/. This is necessary for the Go backend to include the JavaScript within the binary.