Skip to content

Commit

Permalink
feat(windows): Support environment variable override for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Mar 16, 2021
1 parent 98c62df commit 96bd561
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Windows.md
Expand Up @@ -111,3 +111,17 @@ scoop install git curl make jq zip unzip
Visual Studio should print out `Microsoft (R) Incremental Linker`.
To fix it, Visual Studio's bin paths should be ordered prior to Cygwin's (or similar installation's)
bin paths in `Path` environment variable.

## Run EMQ X

To start EMQ X broker.

Execute `_build\emqx\rel\emqx>.\bin\emqx console` or `_build\emqx\rel\emqx>.\bin\emqx start` to start EMQ X.

Then execute `_build\emqx\rel\emqx>.\bin\emqx_ctl status` to check status.
If everything works fine, it should print out

```
Node 'emqx@127.0.0.1' 4.3-beta.1 is started
Application emqx 4.3.0 is running
```
2 changes: 2 additions & 0 deletions bin/emqx.cmd
Expand Up @@ -19,6 +19,8 @@
@set erts_vsn={{ erts_vsn }}
@set erl_opts={{ erl_opts }}

@set "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_"

@set script=%~n0

:: Discover the release root directory from the directory
Expand Down

0 comments on commit 96bd561

Please sign in to comment.