current position:Home>How can DAPP be deployed on the server and accessed by others?

How can DAPP be deployed on the server and accessed by others?

2022-02-03 20:55:48 Q & A of Denglian community

Dapp How to deploy to the server to be accessed by others ?

If it's deployed to ropsten perhaps mainnet On , How to write the environment configuration file ?




Take the answer 1:

How to deploy to the main network , Take a look at this article https://learnblockchain.cn/2019/03/30/dapp_noteOnChain

Deployment contract truffle This is the configuration :

    main: {      provider: function() {        return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/v3/...")      },      network_id: 1,      gas: 7003605,      gasPrice: 10000000000,   // 10Gwei    }

Reference resources :truffle file - How to configure

Deploy DApp front end , Need to have a public network server , Or it can be hosted in github page On , Just copy the front-end code .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032055469980.html

Random recommended