Commit 25570b2 1 parent deb1168 commit 25570b2 Copy full SHA for 25570b2
File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -118,14 +118,6 @@ var rootCmd = &cobra.Command{
118
118
server = api .NewServer ()
119
119
server .WithAuth (defaultAuthHandler )
120
120
121
- cfg , err := utask .Config (store )
122
- if err != nil {
123
- return err
124
- }
125
- server .SetDashboardPathPrefix (cfg .DashboardPathPrefix )
126
- server .SetDashboardAPIPathPrefix (cfg .DashboardAPIPathPrefix )
127
- server .SetEditorPathPrefix (cfg .EditorPathPrefix )
128
-
129
121
for _ , err := range []error {
130
122
// register builtin executors
131
123
builtin .Register (),
@@ -143,6 +135,14 @@ var rootCmd = &cobra.Command{
143
135
}
144
136
}
145
137
138
+ cfg , err := utask .Config (store )
139
+ if err != nil {
140
+ return err
141
+ }
142
+ server .SetDashboardPathPrefix (cfg .DashboardPathPrefix )
143
+ server .SetDashboardAPIPathPrefix (cfg .DashboardAPIPathPrefix )
144
+ server .SetEditorPathPrefix (cfg .EditorPathPrefix )
145
+
146
146
if utask .FDebug {
147
147
log .SetLevel (log .DebugLevel )
148
148
}
You can’t perform that action at this time.
0 commit comments