[fix] command start load the studio scripts
This commit is contained in:
parent
4cd4eb6f68
commit
2eb78f86df
1 changed files with 8 additions and 1 deletions
|
|
@ -119,9 +119,16 @@ var startCmd = &cobra.Command{
|
|||
|
||||
// Start Studio Server
|
||||
go func() {
|
||||
|
||||
err = studio.Load(config.Conf)
|
||||
if err != nil {
|
||||
fmt.Println(color.RedString(L("Studio Load: %s"), err.Error()))
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
err := studio.Start(config.Conf)
|
||||
if err != nil {
|
||||
fmt.Println(color.RedString(L("Studio: %s"), err.Error()))
|
||||
fmt.Println(color.RedString(L("Studio Start: %s"), err.Error()))
|
||||
os.Exit(2)
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue