Template
1
0
Fork 0

Update server address and build process

This commit is contained in:
Atridad Lahiji 2024-01-26 00:11:38 -07:00
parent adcf4a695a
commit b303484fd9
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,8 @@ tmp_dir = "tmp"
[build] [build]
args_bin = [] args_bin = []
bin = "./tmp/main" 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 delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata", "stylegen"] exclude_dir = ["assets", "tmp", "vendor", "testdata", "stylegen"]
exclude_file = [] exclude_file = []
@ -21,7 +22,6 @@ tmp_dir = "tmp"
poll = false poll = false
poll_interval = 0 poll_interval = 0
post_cmd = [] post_cmd = []
pre_cmd = []
rerun = false rerun = false
rerun_delay = 500 rerun_delay = 500
send_interrupt = false send_interrupt = false

View file

@ -56,5 +56,5 @@ func main() {
apiGroup.GET("/sse", api.SSE) apiGroup.GET("/sse", api.SSE)
apiGroup.POST("/sendsse", api.SSEDemoSend) apiGroup.POST("/sendsse", api.SSEDemoSend)
log.Fatal(http.ListenAndServe(":3000", router)) log.Fatal(http.ListenAndServe("127.0.0.1:3000", router))
} }

File diff suppressed because one or more lines are too long