Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use env variables for mm2 / RPC #1908

Merged
merged 5 commits into from
Aug 9, 2022
Merged

Use env variables for mm2 / RPC #1908

merged 5 commits into from
Aug 9, 2022

Conversation

smk762
Copy link
Collaborator

@smk762 smk762 commented Aug 4, 2022

This adds 3 environment variables:

  • DEX_API which names the api binary. Normally launching the app includes a killall mm2. If we use a different filename for whitelabels, launching a whitelabel will not kill a different whitelabel's mm2 instance - e.g. if running AtomicDEX, launching SmartDEX will not kill the AtomicDEX mm2 instance
  • DEX_RPCPORT defines different RPC ports for a whitelabel's mm2, so there is no port conflict while running other whitelabels.
  • DEX_RPC is the full RPC url with port for mm2.client

To test: Simply make sure it launches and can swap. There should be no change to app functionality.

In future similar PR to whitelabels, test will be launch and do swap between whitelabel and atomicdex running on same machine at same time.

@smk762 smk762 requested review from a user, tonymorony and SirSevenG August 4, 2022 18:02
@tonymorony tonymorony merged commit a5961d3 into dev Aug 9, 2022
@smk762 smk762 mentioned this pull request Nov 18, 2022
@smk762 smk762 deleted the whitelabel-rpcport branch August 7, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants