mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2024-09-20 12:05:56 +08:00
correct BH_HOST to BH_URL
This commit is contained in:
parent
6f1525b374
commit
171b661b99
|
@ -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.
|
||||||
```
|
```
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue