0

我将使用 composer-playground 来连接我自己的结构实例。这是我的环境:OS:Ubuntu16.04 安装方法:npm install -g composer-playground 启动方法:#composer-playground

第一次我从 url:http://localhost:8080/profile 创建了一个配置文件 myconn1,并且在路径 /root/.composer-connection-profiles/myconn1 中生成了一个 connection.json。然后我退出进程composer-playground,修改connection.json文件。但是在再次启动 composer-playground 之后,我的新 connection.json 被我第一次的网页配置覆盖了。是否有另一个存储连接信息的位置?如果我想使用指定的连接配置文件,我如何启动我的 composer-playuground?

4

2 回答 2

0

您应该按照本指南在本地安装和运行 Playground: https ://hyperledger.github.io/composer/tutorials/getting-started-playground.html

于 2017-05-22T20:14:51.087 回答
0

Playground 将连接配置文件存储在浏览器本地存储中。但是,为了与外部区块链建立连接,它需要将其写入文件系统以供服务器端实现使用,以便建立与区块链的连接。Playground 应该支持导出和导入连接配置文件的能力,因此如果您想在 Playground 环境之外更改它们,这将是建议的方法。

于 2017-05-21T21:37:58.103 回答