mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
55d7fbf04c
This is useful when working with backend plugins and grafana at the same time. Makes it so Grafana has a chance to shutdown the external process. An os.Interrupt signal is first sent, then after a five second wait a a force kill will be sent if the process is still running.
22 lines
612 B
TOML
22 lines
612 B
TOML
[run]
|
|
init_cmds = [
|
|
["go", "run", "-mod=vendor", "build.go", "-dev", "build-cli"],
|
|
["go", "run", "-mod=vendor", "build.go", "-dev", "build-server"],
|
|
["./bin/grafana-server", "-packaging=dev", "cfg:app_mode=development"]
|
|
]
|
|
watch_all = true
|
|
follow_symlinks = true
|
|
watch_dirs = [
|
|
"$WORKDIR/pkg",
|
|
"$WORKDIR/public/views",
|
|
"$WORKDIR/conf",
|
|
]
|
|
watch_exts = [".go", ".ini", ".toml", ".template.html"]
|
|
build_delay = 1500
|
|
cmds = [
|
|
["go", "run", "-mod=vendor", "build.go", "-dev", "build-server"],
|
|
["./bin/grafana-server", "-packaging=dev", "cfg:app_mode=development"]
|
|
]
|
|
interrupt_timout = 5
|
|
graceful_kill = true
|