[ eth2owt: sed -i 's/eth_/owt_/g' app/web3/dist/web3.js]
[ DownLoad JS, CSS files from Remote to Local. Change the path to them in index.html]
[ web3.min.js to web3.js: sed -i 's/web3\.min\.js/web3\.js/g' app/index.html]
[ Delete Cache: rm ~/.cache -rf]
RUN
Host
#############################################################################################
# DO NOT USE npm start. npm install MAKES TROUBLE. #
# WHILE USING bower2yarn, yarn WORKS, but npm install DOESN'T HANDLE DEPENDENCIES INDICATED #
# BY @bower_components IN package.json #
#############################################################################################
- remote access
app/app.js: var owt_node_url = 'http://192.168.10.79:8545'; // TODO: remote URL
owt: owt --rpc --rpcaddr "0.0.0.0" --rpccorsdomain "http://192.168.10.79:8000" --rpcport 8545
npm: http-server ./app -p 8000 -c-1
- local access
app/app.js: var owt_node_url = 'http://localhost:8545'; // TODO: remote URL
owt: owt --rpc --rpccorsdomain "http://localhost:8000" --rpcport 8545
npm: http-server ./app -a localhost -p 8000 -c-1