mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-19 12:40:49 +00:00
Compile script.js to top level
This commit is contained in:
parent
bfc0b56ed3
commit
139b5513fc
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
dist/
|
||||
elm-stuff/
|
||||
script.js
|
||||
|
6
main.go
6
main.go
@ -18,7 +18,7 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
http.HandleFunc("/script.js", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "dist/script.js")
|
||||
http.ServeFile(w, r, "script.js")
|
||||
})
|
||||
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
@ -34,7 +34,9 @@ func main() {
|
||||
defer cancel()
|
||||
|
||||
recompileFn := func() error {
|
||||
cmd := exec.Command("elm-make", "src/Main.elm", "--output", "dist/script.js")
|
||||
cmd := exec.Command("elm-make", "src/Main.elm", "--output", "script.js")
|
||||
// Look into the debugger
|
||||
// cmd := exec.Command("elm-make", "src/Main.elm", "--output", "dist/script.js", "--debug")
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
return cmd.Run()
|
||||
|
Loading…
Reference in New Issue
Block a user