Skip to content

Commit

Permalink
docs: warn dev when starting mainnet locally to use a different ETH n…
Browse files Browse the repository at this point in the history
…ode (#1318)
  • Loading branch information
sohkai committed Feb 19, 2020
1 parent 51ad29d commit 4b92931
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/start
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ const execute = require('child_process').execSync

const clientPort = process.env.ARAGON_PORT || process.env.REACT_APP_PORT || 3000

if (
process.env.ARAGON_ETH_NETWORK_TYPE === 'main' &&
!process.env.ARAGON_DEFAULT_ETH_NODE
) {
console.log(
'⚠️ You are connecting the Aragon client to mainnet but have not specified an Ethereum node.'
)
console.log(
' Connecting to the default node (wss://mainnet.eth.aragon.network/ws) in a local'
)
console.log(
' environment may result in severe slowdowns when trying to fetch Ethereum events or state.'
)
console.log()
console.log(
"➡️ During development, it is recommended to override the 'ARAGON_DEFAULT_ETH_NODE' environment"
)
console.log(
' variable with an Infura (infura.io) mainnet node to accelerate loading Ethereum events and state.'
)
console.log(
' You may do so by directly setting an environment variable or by using a .env file.'
)
}

execute(`copy-aragon-ui-assets -n aragon-ui ./public`, {
stdio: 'inherit',
})
Expand Down

0 comments on commit 4b92931

Please sign in to comment.