File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 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{
118118 server = api .NewServer ()
119119 server .WithAuth (defaultAuthHandler )
120120
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-
129121 for _ , err := range []error {
130122 // register builtin executors
131123 builtin .Register (),
@@ -143,6 +135,14 @@ var rootCmd = &cobra.Command{
143135 }
144136 }
145137
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+
146146 if utask .FDebug {
147147 log .SetLevel (log .DebugLevel )
148148 }
You can’t perform that action at this time.
0 commit comments