7

linux 搭建的web3节点的根目录怎么修改

 3 years ago
source link: https://learnblockchain.cn/question/1872
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
linux 搭建的web3节点的根目录怎么修改

linux 搭建的web3节点的根目录怎么修改

运行代码的时候
image.png
发现调用不到资源,然后就查看发现,当前的节点根目录是 src,
image.png
但我需要的 JSON 文件在 src 的同级的 build/contracts 下,想问问怎么才能修改节点根目录,使上级文件夹为根目录
节点运行通过 npm run dev
image.png

源代码是用的宠物商店的案例 https://www.jianshu.com/p/861501dc0b87?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK