File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,16 @@ import (
47
47
48
48
type CurveAdm struct {
49
49
// project layout
50
- rootDir string
51
- dataDir string
52
- pluginDir string
53
- logDir string
54
- tempDir string
55
- dbpath string
56
- logpath string
57
- config * configure.CurveAdmConfig
50
+ rootDir string
51
+ dataDir string
52
+ pluginDir string
53
+ logDir string
54
+ tempDir string
55
+ dbpath string
56
+ logpath string
57
+ httpConfPath string
58
+ httpLogPath string
59
+ config * configure.CurveAdmConfig
58
60
59
61
// data pipeline
60
62
in io.Reader
@@ -97,6 +99,8 @@ func NewCurveAdm() (*CurveAdm, error) {
97
99
pluginDir : path .Join (rootDir , "plugins" ),
98
100
logDir : path .Join (rootDir , "logs" ),
99
101
tempDir : path .Join (rootDir , "temp" ),
102
+ httpConfPath : path .Join (rootDir , "http/conf" ),
103
+ httpLogPath : path .Join (rootDir , "http/logs" ),
100
104
}
101
105
102
106
err = curveadm .init ()
@@ -116,6 +120,8 @@ func (curveadm *CurveAdm) init() error {
116
120
curveadm .pluginDir ,
117
121
curveadm .logDir ,
118
122
curveadm .tempDir ,
123
+ curveadm .httpConfPath ,
124
+ curveadm .httpLogPath ,
119
125
}
120
126
for _ , dir := range dirs {
121
127
if err := os .MkdirAll (dir , os .ModePerm ); err != nil {
You can’t perform that action at this time.
0 commit comments