如何部署到主网, 可以看看这篇文章 https://learnblockchain.cn/2019/03/30/dapp_noteOnChain
部署合约的truffle配置是这样:
    main: {
      provider: function() {
        return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/v3/...")
      },
      network_id: 1,
      gas: 7003605,
      gasPrice: 10000000000,   // 10Gwei
    }部署DApp 前端,需要有一台公网的服务器,或者可以托管在github page 上,把前端代码拷贝过去就好。