site updated

This commit is contained in:
alessio 2017-08-30 01:56:47 +02:00
parent a6823e6f56
commit e01ecaec92
1 changed files with 0 additions and 2 deletions

View File

@ -115,7 +115,6 @@ func (s *Server) Start(p *cli.Context) (err error) {
//websocket //websocket
e.GET("/ws", s.projects) e.GET("/ws", s.projects)
go e.Start(string(s.Settings.Server.Host) + ":" + strconv.Itoa(s.Settings.Server.Port)) go e.Start(string(s.Settings.Server.Host) + ":" + strconv.Itoa(s.Settings.Server.Port))
_, err = s.OpenURL("http://" + string(s.Settings.Server.Host) + ":" + strconv.Itoa(s.Settings.Server.Port)) _, err = s.OpenURL("http://" + string(s.Settings.Server.Host) + ":" + strconv.Itoa(s.Settings.Server.Port))
if err != nil { if err != nil {
@ -148,7 +147,6 @@ func (s *Server) projects(c echo.Context) error {
text := "" text := ""
err := websocket.Message.Receive(ws, &text) err := websocket.Message.Receive(ws, &text)
if err != nil { if err != nil {
//log.Println(err)
break break
} else { } else {
err := json.Unmarshal([]byte(text), &s.Blueprint.Projects) err := json.Unmarshal([]byte(text), &s.Blueprint.Projects)