Allow GUI development with standard binary

This commit is contained in:
Jakob Borg
2014-05-22 16:12:19 +02:00
parent 52d8e4c691
commit 04130fcb15
5 changed files with 45 additions and 56 deletions

View File

@@ -84,7 +84,9 @@ const (
- "xdr" (the xdr package)
- "all" (all of the above)
STCPUPROFILE Write CPU profile to the specified file.`
STCPUPROFILE Write CPU profile to the specified file.
STGUIASSETS Directory to load GUI assets from. Overrides compiled in assets.`
)
func main() {
@@ -279,7 +281,7 @@ func main() {
}
l.Infof("Starting web GUI on %s://%s:%d/", proto, hostShow, addr.Port)
err := startGUI(cfg.GUI, m)
err := startGUI(cfg.GUI, os.Getenv("STGUIASSETS"), m)
if err != nil {
l.Fatalln("Cannot start GUI:", err)
}