site updated
This commit is contained in:
parent
a6823e6f56
commit
e01ecaec92
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue