Update server address and build process
This commit is contained in:
parent
adcf4a695a
commit
b303484fd9
3 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,8 @@ tmp_dir = "tmp"
|
|||
[build]
|
||||
args_bin = []
|
||||
bin = "./tmp/main"
|
||||
cmd = "go build -o ./tmp/main ."
|
||||
pre_cmd = ["cd stylegen && bun i"]
|
||||
cmd = "go build -o ./tmp/main . & cd stylegen && bun gen"
|
||||
delay = 1000
|
||||
exclude_dir = ["assets", "tmp", "vendor", "testdata", "stylegen"]
|
||||
exclude_file = []
|
||||
|
@ -21,7 +22,6 @@ tmp_dir = "tmp"
|
|||
poll = false
|
||||
poll_interval = 0
|
||||
post_cmd = []
|
||||
pre_cmd = []
|
||||
rerun = false
|
||||
rerun_delay = 500
|
||||
send_interrupt = false
|
||||
|
|
2
main.go
2
main.go
|
@ -56,5 +56,5 @@ func main() {
|
|||
apiGroup.GET("/sse", api.SSE)
|
||||
apiGroup.POST("/sendsse", api.SSEDemoSend)
|
||||
|
||||
log.Fatal(http.ListenAndServe(":3000", router))
|
||||
log.Fatal(http.ListenAndServe("127.0.0.1:3000", router))
|
||||
}
|
||||
|
|
2
public/css/styles.css
vendored
2
public/css/styles.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue