Skip to content

Commit

Permalink
externalizing the URL for the eth node
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldowling authored Jul 6, 2016
1 parent a9f3bcc commit 1a55889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ angular.module('ethExplorer', ['ngRoute','ui.bootstrap'])
}])
.run(function($rootScope) {
var web3 = require('web3');
web3.setProvider(new web3.providers.HttpProvider("http://localhost:8545"));
var eth_node_url = process.env["ETHEREUM_URL"] || "http://localhost:8545";
web3.setProvider(new web3.providers.HttpProvider(eth_node_url));
$rootScope.web3=web3;
function sleepFor( sleepDuration ){
var now = new Date().getTime();
Expand Down

0 comments on commit 1a55889

Please sign in to comment.