6 Star 4 Fork 0

Gitee 极速下载/chain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/chain/chain
克隆/下载
Makefile 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
Santosh Kumar 提交于 2022-03-24 00:29 +08:00 . -p flag to Makefile
SNAPPY = $(CHAIN)/vendor/github.com/google/snappy
ROCKSDB = $(CHAIN)/vendor/github.com/facebook/rocksdb
DB_DEV = core
RAFT_DEV = $(or $(CHAIN_CORE_HOME), $(HOME)/.chaincore)/raft
default: run
## run a development version of Chain Core at http://localhost:1999
run: build-dev
cored
## reset the development database
resetdb:
-dropdb $(DB_DEV)
createdb $(DB_DEV)
rm -rf $(RAFT_DEV)
## delete the development database, re-configure core, and run server
rerun: build-dev corectl resetdb
sh -c "corectl wait; corectl config-generator" &
cored
## run development dashboard at http://localhost:3000
dashserve:
npm --prefix dashboard start
## run development documentation server at http://localhost:8080
docserve: md2html
md2html serve
## builds chain core with c dependencies, for development environments
build-dev: build-lib
cd $(CHAIN) && go install -tags 'localhost_auth http_ok init_cluster' ./cmd/cored
## builds statically-linked c dependencies
build-lib:
-mkdir -p $(SNAPPY)/build
cd $(SNAPPY)/build && cmake ..
cd $(SNAPPY)/build && $(MAKE)
cd $(ROCKSDB) && $(MAKE) static_lib
## clean removes all data directories and c libraries
clean:
rm -rf $(SNAPPY)/build
rm -f $(ROCKSDB)/librocksdb.a
corectl:
go install chain/cmd/corectl
md2html:
go install chain/cmd/md2html
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/chain.git
git@gitee.com:mirrors/chain.git
mirrors
chain
chain
main

搜索帮助