Skip to content

Commit

Permalink
Merge pull request #3 from laorange/v3.x
Browse files Browse the repository at this point in the history
v3.0.1
  • Loading branch information
laorange committed May 28, 2022
2 parents dc35b69 + 1230378 commit 79c28f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ func main() {
http.Handle("/", http.FileServer(http.FS(dist)))

// windows
exec.Command(`cmd`, `/c`, `start`, `http://127.0.0.1:`+PORT+"/static/").Start()
exec.Command(`cmd`, `/c`, `start`, `http://127.0.0.1:`+PORT+"/dist/").Start()

// mac
exec.Command(`open`, `http://127.0.0.1:`+PORT+"/static/").Start()
// exec.Command(`open`, `http://127.0.0.1:`+PORT+"/dist/").Start()

http.ListenAndServe(":"+PORT, nil)
}

0 comments on commit 79c28f6

Please sign in to comment.