Skip to content

Commit f7f28f0

Browse files
emilyfabiusDonChangfoot
authored andcommitted
Heroku correction (#110)
* Config for Asset Code and Scale for heroku deployment
1 parent 7467558 commit f7f28f0

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
If you already have an XRP account with 35 XRP or more, use the [Livenet](#live-network) instructions.
3131
Otherwise, you can still follow the [Testnet](#test-network) instructions. For development in an offline
32-
environment, you can run your own [Local Testnet](#local-test-network).
32+
environment, you can run your own [Local Testnet](#local-test-network).
3333

3434
### Test Network
3535

@@ -94,20 +94,20 @@ port will only be able to pay other applications on the same machine.
9494
### Cloud Test Network
9595

9696
A publically accessible test network can be created by deploying moneyd to Heroku. Use the button below to deploy
97-
an instance of moneyd running in local mode.
97+
an instance of moneyd running in local mode. Prior to completing the app deployment, Heroku will ask for two required fields: Setting the asset code (i.e, XRP, USD) and setting the asset scale.
9898

9999
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
100100

101101
Once deployed, Heroku will provide you with a url to connect to your cloud moneyd which has the form heroku-app-name.herokuapp.com
102102

103-
A local moneyd instance can then be set up to connect to the Heroku instance using the following commands:
103+
A local moneyd instance can then be set up to connect to the Heroku instance using the following commands:
104104

105105
```sh
106106
moneyd --testnet btp:configure
107107
```
108108

109109
Follow the command-line prompts to configure the connection. When prompted for the `BTP host of parent connector`, enter the url provided by Heroku (heroku-app-name.herokuapp.com without the https://).
110-
Once the uplink has been configured, run the local moneyd instance
110+
Once the uplink has been configured, run the local moneyd instance
111111

112112
```sh
113113
moneyd --testnet btp:start
@@ -236,6 +236,8 @@ variables](https://en.wikipedia.org/wiki/Environment_variable#Unix).
236236
- `MONEYD_ASSET_CODE` - A string specifying the ASSET CODE that moneyd is configured with when running in LOCAL mode. Default: `XRP`.
237237
- `MONEYD_ASSET_SCALE` - A number specifying the ASSET SCALE that moneyd is configured with when running in LOCAL mode. Default: `9`.
238238
- `MONEYD_ILP_ADDRESS` - A string specifying the ilp address that moneyd is configured with when running in LOCAL mode. Default: `private.moneyd`.
239+
- `SET_ASSET_CODE` - A string specifying which Moneyd asset code to use
240+
- `SET_ASSET_SCALE` - A number specifying the Moneyd asset scale to be configured with
239241
### Remote Deploy
240242

241243
If you did the previous step on your remote server, then you don't need to run any

app.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@
33
"description": "A barebones Interledger connector",
44
"repository": "https://github.com/interledgerjs/moneyd",
55
"logo": "https://github.com/interledgerjs/ilp/raw/master/ilp_logo.png",
6-
"keywords": ["interledger", "moneyd"]
7-
}
6+
"keywords": ["interledger", "moneyd"],
7+
"env": {
8+
"SET_ASSET_CODE": {
9+
"description": "What asset code do you want to use?",
10+
"value": ""
11+
},
12+
"SET_ASSET_SCALE": {
13+
"description": "What asset scale do you want to use?",
14+
"value": ""
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)