mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Update run local
This commit is contained in:
parent
003dd9d9e4
commit
b894375f99
4 changed files with 19 additions and 7 deletions
|
|
@ -34,7 +34,7 @@ func createOverlordConnection() (*websocket.Conn, error) {
|
|||
func initilizeOverlord() {
|
||||
overlord := overlord.NewServer()
|
||||
|
||||
log.Println("http://localhost:9000")
|
||||
log.Println("http://localhost:8000")
|
||||
|
||||
http.HandleFunc("/", overlord.GetWeb)
|
||||
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static"))))
|
||||
|
|
@ -42,12 +42,11 @@ func initilizeOverlord() {
|
|||
// browser facing port
|
||||
go func() {
|
||||
http.HandleFunc("/ws", overlord.WS)
|
||||
http.ListenAndServe(":8000", nil)
|
||||
}()
|
||||
|
||||
// worker facing port
|
||||
http.HandleFunc("/wso", overlord.WSO)
|
||||
http.ListenAndServe(":9000", nil)
|
||||
http.ListenAndServe(":8000", nil)
|
||||
|
||||
log.Println("http://localhost:" + *config.Port)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue