Skip to content

Instantly share code, notes, and snippets.

@sdluxeon
Created September 13, 2016 21:24
Show Gist options
  • Select an option

  • Save sdluxeon/cb2512902c1874f55e92cf66ed990cbe to your computer and use it in GitHub Desktop.

Select an option

Save sdluxeon/cb2512902c1874f55e92cf66ed990cbe to your computer and use it in GitHub Desktop.
consul-config
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & WScript.Arguments(0) & Chr(34), 0
Set WshShell = Nothing
setlocal
cd /d %~dp0
START /b background.vbs "single-node.bat"
exit
setlocal
cd /d %~dp0
consul.exe agent -server -ui -advertise=127.0.0.1 -retry-join=127.0.0.1 -bootstrap -config-dir=config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment