@@ -83,7 +83,7 @@ func (r *RuntimeService) Create(create request.RuntimeCreate) (*model.Runtime, e
8383 if exist != nil {
8484 return nil , buserr .New (constant .ErrImageExist )
8585 }
86- case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDoNet :
86+ case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDotNet :
8787 if ! fileOp .Stat (create .CodeDir ) {
8888 return nil , buserr .New (constant .ErrPathNotFound )
8989 }
@@ -133,7 +133,7 @@ func (r *RuntimeService) Create(create request.RuntimeCreate) (*model.Runtime, e
133133 if err = handlePHP (create , runtime , fileOp , appVersionDir ); err != nil {
134134 return nil , err
135135 }
136- case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDoNet :
136+ case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDotNet :
137137 runtime .Port = create .Port
138138 if err = handleNodeAndJava (create , runtime , fileOp , appVersionDir ); err != nil {
139139 return nil , err
@@ -217,7 +217,7 @@ func (r *RuntimeService) Delete(runtimeDelete request.RuntimeDelete) error {
217217 global .LOG .Errorf ("delete image id [%s] error %v" , imageID , err )
218218 }
219219 }
220- case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDoNet :
220+ case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDotNet :
221221 if out , err := compose .Down (runtime .GetComposePath ()); err != nil && ! runtimeDelete .ForceDelete {
222222 if out != "" {
223223 return errors .New (out )
@@ -300,7 +300,7 @@ func (r *RuntimeService) Get(id uint) (*response.RuntimeDTO, error) {
300300 }
301301 }
302302 res .AppParams = appParams
303- case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDoNet :
303+ case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDotNet :
304304 res .Params = make (map [string ]interface {})
305305 envs , err := gotenv .Unmarshal (runtime .Env )
306306 if err != nil {
@@ -361,7 +361,7 @@ func (r *RuntimeService) Update(req request.RuntimeUpdate) error {
361361 if exist != nil {
362362 return buserr .New (constant .ErrImageExist )
363363 }
364- case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDoNet :
364+ case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDotNet :
365365 if runtime .Port != req .Port {
366366 if err = checkPortExist (req .Port ); err != nil {
367367 return err
@@ -441,7 +441,7 @@ func (r *RuntimeService) Update(req request.RuntimeUpdate) error {
441441 return err
442442 }
443443 go buildRuntime (runtime , imageID , req .Rebuild )
444- case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDoNet :
444+ case constant .RuntimeNode , constant .RuntimeJava , constant .RuntimeGo , constant .RuntimePython , constant .RuntimeDotNet :
445445 runtime .Version = req .Version
446446 runtime .CodeDir = req .CodeDir
447447 runtime .Port = req .Port
0 commit comments