Hyperledger Fabric 1.4 中文文档的库和命令行工具,用来提高基于 SSH 的 应用部署和系统管理效率。 更具体地说,Fabric 是: 一个让你通过 命令行 执行 无参数 Python 函数 的工具; 一个让通过 SSH 执行 Shell 命令更加 容易 、 更符合 Python 风格 的命令 库(建立于一个更低层次的库)。 自然而然地,大部分用户把这两件事结合着用,使用 Fabric 来写和执行 Python 函数或 task 中完成。 参见 Execution strategy, 定义任务, fab 选项和参数 任务参数 和你平时的 Python 编程一样,给任务函数传递参数很有必要``。Fabric 支持 Shell 兼容的参数用法: <任务名>:<参数>, <关键字参数名>=<参数值>,... 用起来就 是这样,下面我们用一个 say hello 的实例来展开说明一下: def hello(name="world"): 本地命令 在前面的例子中, fab 实际上只节省了数行 if __name__ == "__main__" 这样 的惯例代码而已。Fabric 的设计目的更是为了使用它自己的 API,包括执行 Shell 命令、传送文件等函数(或操作)接口。 假设我们需要为一个 web 应用创建 fabfile 。具体的情景如下:这个 web 应用 的代码使用 git 托管在一台远程服务器 vcshost 上,我们把它的代码库克隆到0 码力 | 145 页 | 161.53 KB | 1 年前3
Hyperledger Fabric 2.5 中文文档的库和命令行工具,用来提高基于 SSH 的 应用部署和系统管理效率。 更具体地说,Fabric 是: 一个让你通过 命令行 执行 无参数 Python 函数 的工具; 一个让通过 SSH 执行 Shell 命令更加 容易 、 更符合 Python 风格 的命令 库(建立于一个更低层次的库)。 自然而然地,大部分用户把这两件事结合着用,使用 Fabric 来写和执行 Python 函数或 task 中完成。 参见 Execution strategy, 定义任务, fab 选项和参数 任务参数 和你平时的 Python 编程一样,给任务函数传递参数很有必要``。Fabric 支持 Shell 兼容的参数用法: <任务名>:<参数>, <关键字参数名>=<参数值>,... 用起来就 是这样,下面我们用一个 say hello 的实例来展开说明一下: def hello(name="world"): 本地命令 在前面的例子中, fab 实际上只节省了数行 if __name__ == "__main__" 这样 的惯例代码而已。Fabric 的设计目的更是为了使用它自己的 API,包括执行 Shell 命令、传送文件等函数(或操作)接口。 假设我们需要为一个 web 应用创建 fabfile 。具体的情景如下:这个 web 应用 的代码使用 git 托管在一台远程服务器 vcshost 上,我们把它的代码库克隆到0 码力 | 138 页 | 154.00 KB | 1 年前3
Hyperledger Fabric 1.1 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. Node.js Runtime and NPM If you will be developing applications for Hyperledger Git Bash [https://git-scm.com/downloads] and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 422 页 | 4.84 MB | 1 年前3
Hyperledger Fabric 1.1 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. 1.1.4 Node.js Runtime and NPM If you will be developing applications for Hyperledger Quickstart Terminal which uses Git Bash and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 277 页 | 3.21 MB | 1 年前3
Hyperledger Fabric 1.2 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. 3.1.4 Node.js Runtime and NPM If you will be developing applications for Hyperledger Quickstart Terminal which uses Git Bash and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 335 页 | 4.48 MB | 1 年前3
Hyperledger Fabric 1.2 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. Node.js Runtime and NPM If you will be developing applications for Hyperledger Git Bash [https://git-scm.com/downloads] and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 497 页 | 6.59 MB | 1 年前3
Hyperledger Fabric 1.3 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. Node.js Runtime and NPM If you will be developing applications for Hyperledger Git Bash [https://git-scm.com/downloads] and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 528 页 | 6.85 MB | 1 年前3
Hyperledger Fabric 1.3 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. 5.1.4 Node.js Runtime and NPM If you will be developing applications for Hyperledger Quickstart Terminal which uses Git Bash and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 367 页 | 4.95 MB | 1 年前3
Hyperledger Fabric 1.4.8 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. Node.js Runtime and NPM If you will be developing applications for Hyperledger Git Bash [https://git-scm.com/downloads] and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 699 页 | 9.02 MB | 1 年前3
Hyperledger Fabric 1.4.9 Documentationthem in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux. First, you must set the environment variable GOPATH to point at the Go workspace containing other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above. 5.1.4 Node.js Runtime and NPM If you will be developing applications for Hyperledger Quickstart Terminal which uses Git Bash and provides a better alternative to the built-in Windows shell. However experience has shown this to be a poor development environment with limited functionality0 码力 | 483 页 | 7.48 MB | 1 年前3
共 70 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













