错误
cielo@cielo-ThinkPad-E550:~/cprogrames/airlinev1/dist$ composer archive create -a dist/airlinev1.bna -t dir -n ../
Creating Business Network ArchiveLooking for package.json of Business Network DefinitionInput directory: ../
ParseException: Expected "@", "abstract", "asset", "concept", "enum", "event", "from", "import", "participant", "transaction", comment, end of input, end of line or whitespace but "A" found. File /home/cielo/cprogrames/airlinev1/models/org.acme.airline.flight.cto line 2 column 34
Command failed
原因
目录不对,bna是打包整个文档,应该在上一级目录进行。
解决方案
换目录。运行成功。
cielo@cielo-ThinkPad-E550:~/cprogrames/airlinev1$ composer archive create -a dist/airlinev1.bna -t dir -n .
Creating Business Network ArchiveLooking for package.json of Business Network DefinitionInput directory: /home/cielo/cprogrames/airlinev1Found:Description: this is the airlinev1Name: airlinev1Identifier: airlinev1@0.0.1Written Business Network Definition Archive file to Output file: dist/airlinev1.bnaCommand succeeded
放入playground试试
因为和教程的playground已经不一样了。所以自己摸索一下,记录一下参数
密码和用户名一致。
正在deploy
错误
解决方法
要在web brouser下面deploy,否则需要card或者用户名密码才能进去。
默认加进去的model改了我的名字而且只导入了一个,后面的都是我自己导入的=-=。需要改一下import的名字。【课程里面说这样的没有办法一个一个加进去,现在composer似乎可以了,不用打包成bna再上传上去】