Skip to content

Commit ae29fcf

Browse files
committed
update docs, get environment from shell
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
1 parent 3fd1632 commit ae29fcf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Suitable for developers working in a language without an official BitGo SDK.
2727
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.
2828
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.
2929

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

3232
# Compile
3333

browser.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
</head>
4+
<body>
5+
<!-- This file should get generated when you do npm run-script compile-dbg -->
6+
<script src="BitGoJS.js"></script>
7+
</body>
8+
</html>

src/bitgo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var BitGo = function(params) {
114114
throw new Error('invalid environment');
115115
}
116116
} else {
117-
params.env = 'test';
117+
params.env = process.env.BITGO_ENV || 'test';
118118
}
119119
this.env = params.env;
120120

0 commit comments

Comments
 (0)