From 2367b1f9b89697fff784d414a0ec32ca02fecad5 Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 13:24:43 +0200 Subject: [PATCH 1/8] Asset Code and Asset Scale configs --- app.json | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index a9050d2..c7fb8b7 100644 --- a/app.json +++ b/app.json @@ -3,5 +3,24 @@ "description": "A barebones Interledger connector", "repository": "https://github.com/interledgerjs/moneyd", "logo": "https://github.com/interledgerjs/ilp/raw/master/ilp_logo.png", - "keywords": ["interledger", "moneyd"] -} \ No newline at end of file + "keywords": ["interledger", "moneyd"], + "addons": ["heroku-postgresql:hobby-dev", "papertrail"], + "env": { + "RAILS_ENV": "production", + "COOKIE_SECRET": { + "description": "This gets generated", + "generator": "secret" + }, + "SET_ASSET_CODE": { + "description": "What asset code do you want to use?", + "value": "" + }, + "SET_ASSET_SCALE": { + "description": "What asset scale do you want to use?", + "value": "" + } + }, + "scripts": { + "postdeploy": "bundle exec rake db:migrate" + } +} From ac6bcb91bdbf4d3ee6e6931c222e44064e5c458d Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 13:27:28 +0200 Subject: [PATCH 2/8] Config for Asset Code and Scale --- app.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app.json b/app.json index c7fb8b7..a948ab8 100644 --- a/app.json +++ b/app.json @@ -4,13 +4,7 @@ "repository": "https://github.com/interledgerjs/moneyd", "logo": "https://github.com/interledgerjs/ilp/raw/master/ilp_logo.png", "keywords": ["interledger", "moneyd"], - "addons": ["heroku-postgresql:hobby-dev", "papertrail"], "env": { - "RAILS_ENV": "production", - "COOKIE_SECRET": { - "description": "This gets generated", - "generator": "secret" - }, "SET_ASSET_CODE": { "description": "What asset code do you want to use?", "value": "" From b33b3774e40b6cd0e916813bd88c40fe394f29b8 Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 13:32:01 +0200 Subject: [PATCH 3/8] Removed the postdeploy --- app.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app.json b/app.json index a948ab8..9e49a2a 100644 --- a/app.json +++ b/app.json @@ -12,9 +12,6 @@ "SET_ASSET_SCALE": { "description": "What asset scale do you want to use?", "value": "" - } - }, - "scripts": { - "postdeploy": "bundle exec rake db:migrate" + }, } } From 83c27dbf8560fbb5fd76dcca08b65ffa55b98fe8 Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 13:34:42 +0200 Subject: [PATCH 4/8] minor commit --- app.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.json b/app.json index 9e49a2a..785435b 100644 --- a/app.json +++ b/app.json @@ -6,12 +6,12 @@ "keywords": ["interledger", "moneyd"], "env": { "SET_ASSET_CODE": { - "description": "What asset code do you want to use?", - "value": "" + "description": "What asset code do you want to use?", + "value": "" }, "SET_ASSET_SCALE": { - "description": "What asset scale do you want to use?", - "value": "" + "description": "What asset scale do you want to use?", + "value": "" }, } } From 439c10dc8c69c43d18366da92d0ff7f780b4792f Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 13:36:49 +0200 Subject: [PATCH 5/8] small commit --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index 785435b..5d0e891 100644 --- a/app.json +++ b/app.json @@ -12,6 +12,6 @@ "SET_ASSET_SCALE": { "description": "What asset scale do you want to use?", "value": "" - }, + } } } From 95b432d1163ea5c3c5c11a19c8ed74e921d41e35 Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 14:02:45 +0200 Subject: [PATCH 6/8] set port --- app.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.json b/app.json index 5d0e891..5b987d6 100644 --- a/app.json +++ b/app.json @@ -12,6 +12,10 @@ "SET_ASSET_SCALE": { "description": "What asset scale do you want to use?", "value": "" + }, + "SET_PORT": { + "description": "What port do you want to connect to?", + "value": "" } } } From 752e7a282deace090188a476d1782f654c1b1000 Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Tue, 16 Jul 2019 14:31:01 +0200 Subject: [PATCH 7/8] README contains the Heroku changes --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ec1632d..c6fc8c0 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ If you already have an XRP account with 35 XRP or more, use the [Livenet](#live-network) instructions. Otherwise, you can still follow the [Testnet](#test-network) instructions. For development in an offline -environment, you can run your own [Local Testnet](#local-test-network). +environment, you can run your own [Local Testnet](#local-test-network). ### Test Network @@ -94,20 +94,20 @@ port will only be able to pay other applications on the same machine. ### Cloud Test Network A publically accessible test network can be created by deploying moneyd to Heroku. Use the button below to deploy -an instance of moneyd running in local mode. +an instance of moneyd running in local mode. Prior to completing the app deployment, Heroku will ask for three required fields: Setting the asset code (i.e, XRP, USD), setting the asset scale, and setting the listening port. [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) Once deployed, Heroku will provide you with a url to connect to your cloud moneyd which has the form heroku-app-name.herokuapp.com -A local moneyd instance can then be set up to connect to the Heroku instance using the following commands: +A local moneyd instance can then be set up to connect to the Heroku instance using the following commands: ```sh moneyd --testnet btp:configure ``` 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://). -Once the uplink has been configured, run the local moneyd instance +Once the uplink has been configured, run the local moneyd instance ```sh moneyd --testnet btp:start @@ -236,6 +236,9 @@ variables](https://en.wikipedia.org/wiki/Environment_variable#Unix). - `MONEYD_ASSET_CODE` - A string specifying the ASSET CODE that moneyd is configured with when running in LOCAL mode. Default: `XRP`. - `MONEYD_ASSET_SCALE` - A number specifying the ASSET SCALE that moneyd is configured with when running in LOCAL mode. Default: `9`. - `MONEYD_ILP_ADDRESS` - A string specifying the ilp address that moneyd is configured with when running in LOCAL mode. Default: `private.moneyd`. +- `SET_ASSET_CODE` - A string specifying which Moneyd asset code to use +- `SET_ASSET_SCALE` - A number specifying the Moneyd asset scale to be configured with +- `SET_PORT` - A string specifying which port to listen to ### Remote Deploy If you did the previous step on your remote server, then you don't need to run any From e72c2c1373df708826ebb6fd2731869d7f332978 Mon Sep 17 00:00:00 2001 From: emilyfabius Date: Thu, 1 Aug 2019 15:35:55 +0200 Subject: [PATCH 8/8] minor change --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c6fc8c0..c634f8d 100644 --- a/README.md +++ b/README.md @@ -238,7 +238,6 @@ variables](https://en.wikipedia.org/wiki/Environment_variable#Unix). - `MONEYD_ILP_ADDRESS` - A string specifying the ilp address that moneyd is configured with when running in LOCAL mode. Default: `private.moneyd`. - `SET_ASSET_CODE` - A string specifying which Moneyd asset code to use - `SET_ASSET_SCALE` - A number specifying the Moneyd asset scale to be configured with -- `SET_PORT` - A string specifying which port to listen to ### Remote Deploy If you did the previous step on your remote server, then you don't need to run any