pond: Make target
This commit is contained in:
parent
fa44db3eb8
commit
cc3f8a13ce
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
/lotus
|
/lotus
|
||||||
/lotus-storage-miner
|
/lotus-storage-miner
|
||||||
|
/pond
|
||||||
**/*.h
|
**/*.h
|
||||||
**/*.a
|
**/*.a
|
||||||
**/*.pc
|
**/*.pc
|
||||||
|
5
Makefile
5
Makefile
@ -47,6 +47,11 @@ build: $(BUILD_DEPS)
|
|||||||
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
|
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
|
pond: build
|
||||||
|
go build -o pond ./lotuspond
|
||||||
|
(cd lotuspond/front && npm run build)
|
||||||
|
.PHONY: pond
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(CLEAN)
|
rm -rf $(CLEAN)
|
||||||
-$(MAKE) -C $(BLS_PATH) clean
|
-$(MAKE) -C $(BLS_PATH) clean
|
||||||
|
@ -108,7 +108,7 @@ func main() {
|
|||||||
rpcServer := jsonrpc.NewServer()
|
rpcServer := jsonrpc.NewServer()
|
||||||
rpcServer.Register("Pond", &api{running: map[int32]runningNode{}})
|
rpcServer.Register("Pond", &api{running: map[int32]runningNode{}})
|
||||||
|
|
||||||
http.Handle("/", http.FileServer(http.Dir("testbed/front/build")))
|
http.Handle("/", http.FileServer(http.Dir("lotuspond/front/build")))
|
||||||
http.Handle("/rpc/v0", rpcServer)
|
http.Handle("/rpc/v0", rpcServer)
|
||||||
|
|
||||||
fmt.Printf("Listening on http://%s\n", listenAddr)
|
fmt.Printf("Listening on http://%s\n", listenAddr)
|
Loading…
Reference in New Issue
Block a user