feat(windows): Support environment variable override for windows

This commit is contained in:
Zaiming Shi 2021-03-15 17:49:15 +01:00 committed by Zaiming (Stone) Shi
parent 98c62df2e4
commit 96bd561790
2 changed files with 16 additions and 0 deletions

View File

@ -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
```

View File

@ -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