Document convenient development of UI files.

This commit is contained in:
Fabian Reinartz 2015-11-11 21:12:57 +01:00
parent 307d9fad46
commit 69e6ac735e
1 changed files with 12 additions and 0 deletions

12
web/ui/README.md Normal file
View File

@ -0,0 +1,12 @@
The ui package contains static files and templates used in the web UI. For
easier distribution they are statically compiled into the Prometheus binary
using the go-bindata tool (c.f. Makefile).
During development it is more convenient to always use the files on disk to
directly see changes without recompiling.
Set the environment variable `DEBUG=1` and compile Prometheus for this to work.
This is for development purposes only.
After making changes to any file, run `make assets` before commiting to update
the generated inline version of the file.