correct BH_HOST to BH_URL

This commit is contained in:
nicksherron 2020-02-10 04:23:21 -05:00
parent 6f1525b374
commit 171b661b99
2 changed files with 5 additions and 5 deletions

View file

@ -78,13 +78,13 @@ or on docker
``` ```
$ docker run -d -p 8080:8080 --name bashhub-server nicksherron/bashhub-server $ docker run -d -p 8080:8080 --name bashhub-server nicksherron/bashhub-server
``` ```
Then add ```export BH_HOST=http://localhost:8080``` (or whatever you set your bashhub-server address to) to your .zshrc or .bashrc Then add ```export BH_URL=http://localhost:8080``` (or whatever you set your bashhub-server address to) to your .zshrc or .bashrc
``` ```
echo "export BH_HOST=http://localhost:8080" >> ~/.bashrc echo "export BH_URL=http://localhost:8080" >> ~/.bashrc
``` ```
or or
``` ```
$ echo "export BH_HOST=http://localhost:8080" >> ~/.zshr $ echo "export BH_URL=http://localhost:8080" >> ~/.zshr
``` ```
Thats it! Restart your shell and re-run bashhub setup. Thats it! Restart your shell and re-run bashhub setup.
``` ```

View file

@ -87,8 +87,8 @@ func startupMessage() {
func listenAddr() string { func listenAddr() string {
var a string var a string
if os.Getenv("BH_HOST") != "" { if os.Getenv("BH_URL") != "" {
a = os.Getenv("BH_HOST") a = os.Getenv("BH_URL")
return a return a
} }
a = "http://0.0.0.0:8080" a = "http://0.0.0.0:8080"