Skip to content

Commit

Permalink
update docs, get environment from shell
Browse files Browse the repository at this point in the history
Summary:
update docs on starting bitgoexpress
get bitgo environment from shell variable BITGO_ENV
put an example browser.html to show how to include sdk into browser side app

Reviewers: ryan

Reviewed By: ryan

Subscribers: ben

Differential Revision: https://phabricator.bitgo.com/D886
  • Loading branch information
bencxr committed Apr 10, 2015
1 parent 3fd1632 commit ae29fcf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Suitable for developers working in a language without an official BitGo SDK.
BitGo Express runs as a service in your own datacenter, and handles the client-side operations involving your own keys, such as partially signing transactions before submitting to BitGo.
This ensures your keys never leave your network, and are not seen by BitGo. BitGo Express can also proxy the standard BitGo REST APIs, providing a unified interface to BitGo through a single REST API.

`bin/bitgo-express`
`bin/bitgo-express [-h] [-v] [-p PORT] [-b BIND] [-e ENV] [-d] [-k KEYPATH] [-c CRTPATH]`

# Compile

Expand Down
8 changes: 8 additions & 0 deletions browser.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>
</head>
<body>
<!-- This file should get generated when you do npm run-script compile-dbg -->
<script src="BitGoJS.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/bitgo.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var BitGo = function(params) {
throw new Error('invalid environment');
}
} else {
params.env = 'test';
params.env = process.env.BITGO_ENV || 'test';
}
this.env = params.env;

Expand Down

0 comments on commit ae29fcf

Please sign in to comment.