chainwatch: make target
This commit is contained in:
parent
d235e7f20e
commit
80095fdf3c
6
Makefile
6
Makefile
@ -109,6 +109,12 @@ fountain:
|
|||||||
go run github.com/GeertJohan/go.rice/rice append --exec fountain -i ./cmd/lotus-fountain
|
go run github.com/GeertJohan/go.rice/rice append --exec fountain -i ./cmd/lotus-fountain
|
||||||
.PHONY: fountain
|
.PHONY: fountain
|
||||||
|
|
||||||
|
chainwatch:
|
||||||
|
rm -f chainwatch
|
||||||
|
go build -o chainwatch ./cmd/lotus-chainwatch
|
||||||
|
go run github.com/GeertJohan/go.rice/rice append --exec chainwatch -i ./cmd/lotus-chainwatch
|
||||||
|
.PHONY: chainwatch
|
||||||
|
|
||||||
stats:
|
stats:
|
||||||
rm -f stats
|
rm -f stats
|
||||||
go build -o stats ./tools/stats
|
go build -o stats ./tools/stats
|
||||||
|
@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/filecoin-project/lotus/build"
|
"github.com/filecoin-project/lotus/build"
|
||||||
lcli "github.com/filecoin-project/lotus/cli"
|
lcli "github.com/filecoin-project/lotus/cli"
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
|
"golang.org/x/xerrors"
|
||||||
"gopkg.in/urfave/cli.v2"
|
"gopkg.in/urfave/cli.v2"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@ -37,7 +38,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := app.Run(os.Args); err != nil {
|
if err := app.Run(os.Args); err != nil {
|
||||||
log.Warn(err)
|
log.Warnf("%+v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -76,7 +77,7 @@ var runCmd = &cli.Command{
|
|||||||
|
|
||||||
h, err := newHandler(api, st)
|
h, err := newHandler(api, st)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return xerrors.Errorf("handler setup: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
http.Handle("/", h)
|
http.Handle("/", h)
|
||||||
|
@ -47,7 +47,7 @@ func newHandler(api api.FullNode, st *storage) (*handler, error) {
|
|||||||
|
|
||||||
base.Funcs(funcs)
|
base.Funcs(funcs)
|
||||||
|
|
||||||
return h, h.site.Walk(".", func(path string, info os.FileInfo, err error) error {
|
return h, h.site.Walk("", func(path string, info os.FileInfo, err error) error {
|
||||||
if filepath.Ext(path) != ".html" {
|
if filepath.Ext(path) != ".html" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user