Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated config param name equal to main js file.
Browse files Browse the repository at this point in the history
Free Software Free Society

To support commits by ctubio,
you can buy-me-a-drink with a small git tip at:
  1GitTipgxvKB3zjCLXRcSgDhC9pivkpc7u

I promise to drink chocolate milk in the development of the next commit.
Also it will help me to keep the maintenance of the project open source.

To request new features or in case this commit breaks something for you,
please create a new github issue with all possible details,
but never share your API Keys!

Signed-off-by: Carles Tubio <[email protected]>
ctubio committed Jun 14, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent aa74d21 commit 0dbe6b6
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ To run multiple instances using a collection of config files:

3. Edit the values of `BotIdentifier`, `EXCHANGE` and `TradedPair` in the new config file as you alternatively desire.

2. Run the new instance with `npm start --K:config=X.json`, also the commands `npm stop` and `npm restart` allow the parameter `--K:config=`, the value is simply the filename of the config file under `etc` folder that you want to run; this value will also be used as the `uid` of the process executed by `forever`.
2. Run the new instance with `npm start --K.js:config=X.json`, also the commands `npm stop` and `npm restart` allow the parameter `--K.js:config=`, the value is simply the filename of the config file under `etc` folder that you want to run; this value will also be used as the `uid` of the process executed by `forever`.

3. Open in the web browser the different pages of the ports of the different running instances, or display the UI of all instances together in a single page using the MATRYOSHKA link in the footer and the config option `MatryoshkaUrl`.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "K",
"name": "K.js",
"version": "3.0.0",
"description": "Self-hosted high frequency automated market making cryptocurrency trading platform",
"dependencies": {
@@ -101,7 +101,7 @@
"restartall": "forever restartall",
"stopall": "forever stopall",
"startall": "ls -1 etc/*.json | cut -d / -f2 | grep -v ^_ | exec xargs -I % npm start --$npm_package_name:config=%",
"restart": "npm stop --K:config=$npm_package_config_config && npm start --$npm_package_name:config=$npm_package_config_config",
"restart": "npm stop --$npm_package_name:config=$npm_package_config_config && npm start --$npm_package_name:config=$npm_package_config_config",
"stop": "forever stop -a -l /dev/null $npm_package_config_config || :",
"start": "npm run test-compile && forever start --uid $npm_package_config_config -a -l /dev/null K.js $npm_package_config_config && exec npm run test-stunnel",
"test-compile": "test -d app || npm $(test -d node_modules && echo run post)install",

0 comments on commit 0dbe6b6

Please sign in to comment.