Skip to content

Commit b168f3c

Browse files
author
Ryan Casey
committed
Set up Coinpunk to take an 'env' flag on the command line that allows for switching between different configuration objects in config.json.
1 parent 12e775a commit b168f3c

File tree

3 files changed

+362
-325
lines changed

3 files changed

+362
-325
lines changed

config.template.json

+19-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{
2-
"bitcoind": "http://rpcuser:[email protected]:18332",
3-
"pricesUrl": "https://bitpay.com/api/rates",
4-
"testnet": true,
5-
"httpPort": 8080,
6-
"httpsPort": 8081,
7-
"sslKey": "./coinpunk.key",
8-
"sslCert": "./coinpunk.crt"
9-
}
2+
"default": {
3+
"bitcoind": "http://rpcuser:[email protected]:18332",
4+
"pricesUrl": "https://bitpay.com/api/rates",
5+
"testnet": true,
6+
"httpPort": 8080,
7+
"httpsPort": 8081,
8+
"sslKey": "./coinpunk.key",
9+
"sslCert": "./coinpunk.crt"
10+
},
11+
"production": {
12+
"bitcoind": "http://rpcuser:[email protected]:8332",
13+
"pricesUrl": "https://bitpay.com/api/rates",
14+
"testnet": true,
15+
"httpPort": 80,
16+
"httpsPort": 43,
17+
"sslKey": "./coinpunk.key",
18+
"sslCert": "./coinpunk.crt"
19+
}
20+
}

0 commit comments

Comments
 (0)