Skip to content

Commit 9d10a46

Browse files
committed
Fixed default config path
Signed-off-by: Vishal Rana <[email protected]>
1 parent b2bb326 commit 9d10a46

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE = labstack/armor
2-
VERSION = 0.4.10
2+
VERSION = 0.4.11
33

44
run:
55
go run cmd/armor/main.go

admin/ui/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3064,7 +3064,7 @@ [email protected], http-errors@~1.6.2:
30643064
statuses ">= 1.3.1 < 2"
30653065

30663066
http-parser-js@>=0.4.0:
3067-
version "0.4.10"
3067+
version "0.4.11"
30683068
resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.4.10.tgz#92c9c1374c35085f75db359ec56cc257cbb93fa4"
30693069

30703070
http-proxy-middleware@~0.17.4:

armor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type (
9292
)
9393

9494
const (
95-
Version = "0.4.10"
95+
Version = "0.4.11"
9696
Website = "https://armor.labstack.com"
9797
)
9898

cmd/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ func initConfig() {
9797
}
9898

9999
// Config
100+
if configFile == "" {
101+
configFile = filepath.Join(a.HomeDir, "config.yaml")
102+
}
100103
data, err := ioutil.ReadFile(configFile)
101104
if err != nil {
102105
a.DefaultConfig = true

website/content/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Type `armor` in your terminal
4444
___
4545
/ _ | ______ _ ___ ____
4646
/ __ |/ __/ ' \/ _ \/ __/
47-
/_/ |_/_/ /_/_/_/\___/_/ v0.4.10
47+
/_/ |_/_/ /_/_/_/\___/_/ v0.4.11
4848
4949
Uncomplicated, modern HTTP server
5050
https://armor.labstack.com

0 commit comments

Comments
 (0)